Application.UseWaitCursor not working

Topics: CAB & Smart Client Software Factory
Sep 13, 2006 at 12:11 AM
originally posted by: joemomberg

Has anyone tried to use the new 2.0 feature, Application.UseWaitCursor? It's not working for me when I call it from a WorkItem, I'm guessing because it is not running on the UI thread? Has anyone managed to find a workaround for this?

Tnx
Joe
Sep 28, 2006 at 9:08 AM
originally posted by: DLorenz

The way we approached this is by calling a custom CAB Service that has a reference to the shell. We then set the waiting cursor on the form and it works fine.
Oct 4, 2006 at 3:08 PM
originally posted by: erymuzuan

You can always use
try
{
Cursor.Current = Cursors.WaitCursor;
// your code her
}
finally
{
Cursor.Current = Cursors.Default;
}