M
MSDousti
Hi everybody
Textboxes in VS behave in a strange way! I have set the "maximum"
property of the textbox to 0, letting virtually no limitation for the
text entered in it.
I put an OpenDialogFile on the form, and a TextBox.
The following code is used to open the file into the textbox:
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Dim sr As New IO.StreamReader(OpenFileDialog1.FileName)
TextBox1.Text = sr.ReadToEnd
sr.Close()
End If
This works really fine in WINDOWS XP.
But in WINDOWS 98, when I open a file- larger than about 33KB- without
any error, nothing appears in the textbox. For files less than 33KB
the code works fine. (I can open files larger than 2^15 = 32768)
What can I do?
Textboxes in VS behave in a strange way! I have set the "maximum"
property of the textbox to 0, letting virtually no limitation for the
text entered in it.
I put an OpenDialogFile on the form, and a TextBox.
The following code is used to open the file into the textbox:
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Dim sr As New IO.StreamReader(OpenFileDialog1.FileName)
TextBox1.Text = sr.ReadToEnd
sr.Close()
End If
This works really fine in WINDOWS XP.
But in WINDOWS 98, when I open a file- larger than about 33KB- without
any error, nothing appears in the textbox. For files less than 33KB
the code works fine. (I can open files larger than 2^15 = 32768)
What can I do?