D
David Kelly
I am noticing a strange behaviour with the button Click event.
A simple test case - a form with a textbox and a button. Attach the
following two handlers.
Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.Leave
MsgBox("leave")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
MsgBox("click")
End Sub
When the user is in the textbox and clicks the button then the leave
event fires (as expected) but no click event????
If I do not handle the leave event then the click event fires.
Any ideas?
A simple test case - a form with a textbox and a button. Attach the
following two handlers.
Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.Leave
MsgBox("leave")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
MsgBox("click")
End Sub
When the user is in the textbox and clicks the button then the leave
event fires (as expected) but no click event????
If I do not handle the leave event then the click event fires.
Any ideas?