On your form.load add the following to open a richtext file.
Dim arguments As String = Command()
Try
Dim tempstr As String = arguments.Replace("""", "")
RichTextBox1.LoadFile(tempstr)
Catch
End Try
Just make sure you are using richtextbox1
To load just a text file use this:
Dim arguments As String = Command()
Try
Dim tempstr As String = arguments.Replace("""", "")
Dim sr As New System.IO.StreamReader(tempstr)
RichTextBox1.text = sr.readtoend
Catch
End Try
I hope this helped! I would love to be a moderator here and post more.