D
DotNetShadow
Hi Guys,
I have been having this problem recently where I have a form with a
textbox and button, if in the button event I have the following:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Cursor = Cursors.WaitCursor
Textbox1.text = Now.Tostring
System.Threading.Thread.Sleep(2000) ' 2 second wait
Me.Cursor = Cursors.Arrow
End Sub
If I click the button the mouse cursor changes to an hourglass,
updates the textbox with current time and after 2 seconds the mouse
cursor returns back to the arrow The problem lies that when u click
the mouse button repeatedly even though the mouse cursor changes to an
hourglass the button is still clickable furthermore u can type text in
the textbox.
Is this the default behaviour of .NET? Is this a bug? I have even
tried disabling form elements and changing the cursor of these form
elements to hourlgass with no success can someone please help thanks
Regards DotNetShadow
I have been having this problem recently where I have a form with a
textbox and button, if in the button event I have the following:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Cursor = Cursors.WaitCursor
Textbox1.text = Now.Tostring
System.Threading.Thread.Sleep(2000) ' 2 second wait
Me.Cursor = Cursors.Arrow
End Sub
If I click the button the mouse cursor changes to an hourglass,
updates the textbox with current time and after 2 seconds the mouse
cursor returns back to the arrow The problem lies that when u click
the mouse button repeatedly even though the mouse cursor changes to an
hourglass the button is still clickable furthermore u can type text in
the textbox.
Is this the default behaviour of .NET? Is this a bug? I have even
tried disabling form elements and changing the cursor of these form
elements to hourlgass with no success can someone please help thanks
Regards DotNetShadow