You're right Daniel - good catch - I just finished writing a windows service
for
a project using threading timers and had that on my brain when I saw his
question.
Maluman - I just tried your code on two devices and I get the wait cursor
for
3 seconds just as you expected. Dell Axim X50v CF 1 SP3 and iPaq 4355 CF2
both display same behavior. So it *should* work for you - what level of
the CF are you using? Is there anything else running on your device as
you are testing?
--
Darren Shaffer
Principal Architect
Connected Innovation
"Daniel Moth" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> When you enable the timer, it runs on a different thread than the main UI
> That is true for threading timers. Isn't the OP using a Forms timer?
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
>
> "Darren Shaffer" <(E-Mail Removed)> wrote in
> message news:(E-Mail Removed)...
>> When you enable the timer, it runs on a different thread than the main UI
>> thread that the WaitCursor is running on. Suggest you look at the sample
>> Compact Framework splash screen app on MSDN to understand how to
>> work with the UI when separate threads are involved under CF.
>>
>> http://msdn.microsoft.com/library/de...ml/casoast.asp
>> --
>> Darren Shaffer
>> Principal Architect
>> Connected Innovation
>>
>> "maluman" <(E-Mail Removed)> wrote in message
>> news:d19bhk$pks$(E-Mail Removed)...
>>> Hello
>>>
>>> I am trying to get control over how the cursor looks, and my attempts
>>> failed. If anyone could please help me.
>>> I made a clock count, and the cursor shows only for a moment on my
>>> Windows CE 4.2 device (Psion Workabout PRO). On emulator you'll probably
>>> find, that moving mouse causes cursor to go back to default state. This
>>> source assumes, that you have a button with text "START" on the form and
>>> a timer:
>>>
>>> void button1_Click(object sender, System.EventArgs e)
>>> {
>>> if (timer1.Enabled)
>>> {
>>> Cursor.Current = Cursors.Default;
>>> timer1.Enabled = false;
>>> button1.Text = "START";
>>> }
>>> else
>>> {
>>> button1.Text = "STOP";
>>> Cursor.Current = Cursors.WaitCursor;
>>> timer1.Interval = 3000; // 3 seconds for a cursor to appear
>>> timer1.Enabled = true;
>>> }
>>> }
>>>
>>> private void timer1_Tick(object sender, System.EventArgs e)
>>> {
>>> Cursor.Current = Cursors.Default;
>>> timer1.Enabled = false;
>>> button1.Text = "START";
>>> }
>>>
>>> --
>>> Regards, m.
>>
>>
>