T
Thom
I'm a real newbie so I apologize for the easy question. I have academic
version of vb.net 2003.
I am trying to write a multiline textbox with data from a text file.
Properties for the textbox are multiline = true, scrollbars = both, wordwrap
= false.
I actually have two textboxes side by sied for different files and I am
using a splitter.
Here is code for reading from one file to populate the text box. I always
end up with the last line of the file.
'open the first file and display
Dim strText1 As String
If strTextFileName1 <> "" Then
Label1.Text = strTextFileName1
objTextRead1 = System.IO.File.OpenText(strTextFileName1)
Me.LeftTextbox.Text = strTextFileName1
Do Until objTextRead1.Peek = -1
strText1 = objTextRead1.ReadLine()
Me.LeftTextbox.Text = strText1
Loop
objTextRead1.Close()
End If
Any help is appreciated. Thank you. Thom
version of vb.net 2003.
I am trying to write a multiline textbox with data from a text file.
Properties for the textbox are multiline = true, scrollbars = both, wordwrap
= false.
I actually have two textboxes side by sied for different files and I am
using a splitter.
Here is code for reading from one file to populate the text box. I always
end up with the last line of the file.
'open the first file and display
Dim strText1 As String
If strTextFileName1 <> "" Then
Label1.Text = strTextFileName1
objTextRead1 = System.IO.File.OpenText(strTextFileName1)
Me.LeftTextbox.Text = strTextFileName1
Do Until objTextRead1.Peek = -1
strText1 = objTextRead1.ReadLine()
Me.LeftTextbox.Text = strText1
Loop
objTextRead1.Close()
End If
Any help is appreciated. Thank you. Thom