I have a question that should be easy for you:

How do I show the wait symbol? I mean when an application starts you get the
symbol on the center of the PDA screen with the rotating colors.

Nowe I have some lengthy operation in my app, how do I show this symbol? I'd try
UseWaitCursor, but this does not seem to be supported on the CF.

Thanks,
Norbert

Re: Newbie: How to show the wait cursor by Christopher

Christopher
Tue Jan 29 21:29:22 CST 2008

Hi,

"Norbert Unterberg" <nunterberg@newsgroups.nospam> wrote in message
news:evE08ItYIHA.1532@TK2MSFTNGP04.phx.gbl...
> How do I show the wait symbol? I mean when an application starts you get
> the symbol on the center of the PDA screen with the rotating colors.

Try using the following code:

using System.Windows.Forms;

try
{
Cursor.Current = Cursrors.WaitCursor;

// do your lengthy operation here
}
finally
{
Cursor.Current = Cursors.Default;
}

This will show the standard wait cursor , perform your lengthy operation and
then return to the default (no) cursor. I usually use a try/finally block so
that the cursor is correctly returned to the default cursor even if the
lengthy operation throws an exception etc.

Hope this helps,
Christopher Fairbairn


Re: Newbie: How to show the wait cursor by Norbert

Norbert
Wed Jan 30 06:02:20 CST 2008

Christopher Fairbairn schrieb:

> "Norbert Unterberg" <nunterberg@newsgroups.nospam> wrote in message
> news:evE08ItYIHA.1532@TK2MSFTNGP04.phx.gbl...
>> How do I show the wait symbol? I mean when an application starts you
>> get the symbol on the center of the PDA screen with the rotating colors.
>
> Try using the following code:
>
> using System.Windows.Forms;
>
> try
> {
> Cursor.Current = Cursrors.WaitCursor;
>
> // do your lengthy operation here
> }
> finally
> {
> Cursor.Current = Cursors.Default;
> }

Thank you, that did it!

Norbert