How to show the wait cursor?

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
 
Joined
Jul 8, 2009
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top