Hi
I'm just new with vb.net so my question might seem to be a newbie question.
I'm trying to open a document from my code.
here it is:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Me.OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Me.RichTextBox1.Text = ***.LoadFile(OpenFileDialog1.FileName)
End If
End Sub
I don't know what to put instead of the ***.
I took my code from an example but it was with an image. not text. What I should put there?
Thanks in advance
I'm just new with vb.net so my question might seem to be a newbie question.
I'm trying to open a document from my code.
here it is:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Me.OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Me.RichTextBox1.Text = ***.LoadFile(OpenFileDialog1.FileName)
End If
End Sub
I don't know what to put instead of the ***.
I took my code from an example but it was with an image. not text. What I should put there?
Thanks in advance