C
Cor
Hi newsgroup
I was answering something to Dotnet Shadow when I remembered me that I had
send a posible Bug to Herfried and Ken Tuckers private newsgroup
"microsoft.public.dotnet.languages.vb.controls" on 25 november about almost
the same question Robert was asking. I never did get any answer on it.
That was with a button, from which I thought that it was after enabling
still firing.
Therefore before giving Robert an answer I tried it again but then with the
textbox and I thought that it was working fine.
But because I found the answer with textbox.readonly a very nice answer
yesterday in this newsgroup I did test that also.
\\\
Here is the code that left will somebody try it?
' needs one texbox, one button and one label on a form
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Me.TextBox1.ReadOnly = True
Me.Button1.Text = "Locked"
Me.TextBox1.Focus()
For y As Integer = 1 To 100
Threading.Thread.Sleep(50)
Me.Refresh()
Next
Me.TextBox1.ReadOnly = False
Me.Label1.Text = Me.TextBox1.Text
Me.Button1.Text = "Unlocked"
End Sub
///
If the textbox is disabled you can type some text (not repeating), and when
the sub is ended it comes in the textbox but not on the label.
If what I think that I see is true, I think it is not good to give the
advice to use the textbox readonly property
Please comments?
Cor
I was answering something to Dotnet Shadow when I remembered me that I had
send a posible Bug to Herfried and Ken Tuckers private newsgroup
"microsoft.public.dotnet.languages.vb.controls" on 25 november about almost
the same question Robert was asking. I never did get any answer on it.
That was with a button, from which I thought that it was after enabling
still firing.
Therefore before giving Robert an answer I tried it again but then with the
textbox and I thought that it was working fine.
But because I found the answer with textbox.readonly a very nice answer
yesterday in this newsgroup I did test that also.
\\\
Here is the code that left will somebody try it?
' needs one texbox, one button and one label on a form
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Me.TextBox1.ReadOnly = True
Me.Button1.Text = "Locked"
Me.TextBox1.Focus()
For y As Integer = 1 To 100
Threading.Thread.Sleep(50)
Me.Refresh()
Next
Me.TextBox1.ReadOnly = False
Me.Label1.Text = Me.TextBox1.Text
Me.Button1.Text = "Unlocked"
End Sub
///
If the textbox is disabled you can type some text (not repeating), and when
the sub is ended it comes in the textbox but not on the label.
If what I think that I see is true, I think it is not good to give the
advice to use the textbox readonly property
Please comments?
Cor