why does TextBox1 show nothing?
- From: "zhang" <makefriend8@xxxxxxx>
- Date: Wed, 16 Apr 2008 13:00:40 +0800
I want to click a button and TextBox1 show the content of the file "1.txt"
but failed why??
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
FileOpen(1, "c:\1.txt", OpenMode.Binary)
FileGet(1, TextBox1.Text)
FileClose()
'TextBox1.Update()
'TextBox1.Refresh()
Dim mylen As Integer
mylen = TextBox1.TextLength() ' mylen is 0,,,,really strange I
think mylen = len of "1.txt"
End Sub
.
- Follow-Ups:
- RE: why does TextBox1 show nothing?
- From: Family Tree Mike
- Re: why does TextBox1 show nothing?
- From: kimiraikkonen
- RE: why does TextBox1 show nothing?
- Prev by Date: Conversion from VB6 to VB.NET
- Next by Date: WindowsMediaPlayer Control Plugins
- Previous by thread: Conversion from VB6 to VB.NET
- Next by thread: Re: why does TextBox1 show nothing?
- Index(es):