Tech Off Post

Single Post Permalink

View Thread: .NET: Setting A Form's Cursor
  • User profile image

    I wish to set the cursor of a form to Wait and then launch a dialog, and then, when the dialog is done and sends a Finished event to the parent form, to change the cursor back to the Default.

    Currently, I use Cursor = Cursors.WaitCursor but that doesn't seem to work because when I move the mouse over the parent form while the dialog is visible, the cursor shows up as the Default cursor instead of the Wait cursor. Does anyone have any suggestions or ideas for getting the Wait cursor to show up?

    I'm using VB .NET but I can take a decent stab at understanding C# code if necessary.