H
i had set WaitCursor for some processing in my application, This works fine for my Windowsform, but i want to extend this wait cursor to all other programs i.e only waitcursor(hourglass) should appear on my screen irrespective of Mouse position on any application on the screen
when i move mouse cursor(hour glass) from out of my application it is changing to default cursor(with hour glass), i think it is normal. but i want the hourglass to stay on till the processing in my application finishes, that means i should not be able to click on any thing on my screen
this is because when i click on any other applications during processing(hourglass) in my application , my application is crashin
this is the code in my windows for
------------------------------------
Cursor oldCursor = Cursor.Current
tr
Cursor.Current = Cursors.WaitCursor;
...............SOME PROCESSING............
DateTime dt = DateTime.Now.AddSeconds(10);
while(dt > DateTime.Now)
//do nothing
}
finally
{
Cursor.Current = Cursors.Default;