10/25/2019 Vista Wait Cursor Gif
Free Busy Cursor icons & vector files, page 3, png icons, free icons. Find GIFs with the latest and newest hashtags! Search, discover and share your favorite Cursor GIFs. The best GIFs are on GIPHY. Cursor 270 GIFs. Sort: Relevant Newest. Animation, retro, computer, sketch, mouse # animation # retro # computer # sketch # mouse.
![]()
// Set cursor as hourglass Cursor.Current = Cursors.WaitCursor; // Execute your time-intensive hashing code here. // Set cursor as default arrow Cursor.Current = Cursors.Default; However, if the hashing operation is really lengthy (MSDN defines this as more than 2-7 seconds), you should probably use a visual feedback indicator other than the cursor to notify the user of the progress. For a more in-depth set of guidelines, see. Edit: As @Am pointed out, you may need to call Application.DoEvents; after Cursor.Current = Cursors.WaitCursor; to ensure that the hourglass is actually displayed. Actually, Cursor.Current = Cursors.WaitCursor; temporarily sets the Wait cursor, but doesn’t ensure that the Wait cursor shows until the end of your operation. Other programs or controls within your program can easily reset the cursor back to the default arrow as in fact happens when you move mouse while operation is still running. A much better way to show the Wait cursor is to set the UseWaitCursor property in a form to true: form.UseWaitCursor = true; This will display wait cursor for all controls on the form until you set this property to false.
If you want wait cursor to be shown on Application level you should use: Application.UseWaitCursor = true.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |