How to show the wait cursor?

  • Thread starter Thread starter SammyBar
  • Start date Start date
S

SammyBar

Hi,

How to show the wait cursor? From the VS2005 documentation it is supposed
the Application class has the UseWaitCursor property. But it looks like this
property is not enabled on the compact framework.
I tryed the code from
http://www.c-sharpcorner.com/Code/2002/May/GettingQuotesInPocketPC.asp
[DllImport("coredll.dll")] private static extern int LoadCursor(int
zeroValue, int cursorID);

[DllImport("coredll.dll")] private static extern int SetCursor(int
cursorHandle);

but VS2005 says syntax is wrong on the above code.
What else can I do?

Thanks in advance
Sammy
 
Hi,

Below is the solution, how to show the wait cursor in windows mobile / compact framework?

Cursor.Current = Cursors.WaitCursor;

Cursor.Current = Cursors.Default;

Thanks
 
Back
Top