Windows Develop Bookmark and Share   
 index > Windows Forms General > Set rotating/animated Hourglass
 

Set rotating/animated Hourglass

i would like to set rotating/animated hour glass during a lengthy db call ..

Any ideas how to do that ?

Jack_Orth  Saturday, March 11, 2006 1:15 AM



Cursor currentCursor = Cursor.Current;
try
{
Cursor.Current = Cursors.WaitCursor;

// Do your DB call here
}
finally
{
Cursor.Current = currentCursor;
}

CommonGenius.com  Saturday, March 11, 2006 10:15 PM



Cursor currentCursor = Cursor.Current;
try
{
Cursor.Current = Cursors.WaitCursor;

// Do your DB call here
}
finally
{
Cursor.Current = currentCursor;
}

CommonGenius.com  Saturday, March 11, 2006 10:15 PM

You can use google to search for other answers

Custom Search

More Threads

• Displaying window in listview
• message codes
• How to erase the lines I have drawn a moment ago ?
• Windows service question
• C# Draw / Redraw Time
• BUG - Controls Disapear
• DataGridViewComboBoxColumn double click to drop the list
• showing controls when menu item is clicked
• please answer - increasing resolution disperses position of controls in a windows form app. why?
• selecting an object