Hey guys. I was wondering if u could help me with some code i was working on. im making a program like notepad called wonder notes. so far its goin pretty good but i was wonder if u could help me with some code. i want the program to load a text file into the rich text box. heres my code for that.
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click Dim OpenFileDialog1 As New OpenFileDialog() OpenFileDialog1.Filter = "Text File (*.txt)|*.txt |All Files |*.*" If OpenFileDialog1.ShowDialog() = DialogResult.OK Then RichTextBox1.Text = Text(OpenFileDialog1.FileName) End If End Sub
oh and while ur at it. can u help me make a new button 2. and a save/save as. thx!