Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Can anyone help?

 

In my application I set the mouse cursor to display the WaitCursor Icon by using the following code...

 

Cursor = System.Windows.Forms.Cursors.WaitCursor

 

 

My problem is, users can still click buttons, controls etc... and the application executes the mouse click event.

 

Is there a way to prevent user input while the mouse cursor is set to WaitCursor.

 

 

Any help would be much appreciated.

Posted

Override your mouse click methods, etc and check the cursor? Generally speaking if you are doing something that takes long enough for a wait cursor, you should be providing a cancel button anyway.

 

Another option is to disable buttons when waiting. Still not an acceptable solution IMHO.

 

-- Pete

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...