Welcome to 2PTTechnology Sign in | Join
in Search

Change cursor to Wait Cursor in a window application

Last post 04-23-2008, 4:21 PM by Anonymous. 0 replies.
Sort Posts: Previous Next
  •  04-23-2008, 4:21 PM 159

    Change cursor to Wait Cursor in a window application

    With .NET you can easily change the current cursor by using the Cursors class. To change the cursor to a hourglass, we'll be using the WaitCursor:

    this.Cursor = Cursors.WaitCursor;

    To change it back to normal after the application has stopped loading:

    this.Cursor = Cursors.Default;

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems