I wrote the following code:
'Select letter type then open the appropriate letter from the file menu.
'Display letter chosen in a Rich Text box
'Edit text in Rich Text box
OpenFileDialog1.Filter =
"txt Files (Text Files)|*.txt"
OpenFileDialog1.Title =
"Open a Document."
If (OpenFileDialog1.ShowDialog = System.Windows.Forms.DialogResult.OK) Then
Me.RichTextBox1.LoadFile("c:\Users\Nez\Documents\School Work\DataConnectedApps\Unit 4 - Group\Inez Cames _Grp_Draft\Inez Cames _Grp_Draft\Accept Credit Letter.txt", RichTextBoxStreamType.PlainText)
End If
This code will bring up one file and only that one. It is not based on the input from the listbox. HELP!!!! I have four letters that the user needs to choose a text file from in the list box, i need the selected text file to display in the Rich txt box