Wait Cuirsor not consistently displayed.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Platform WinCE 4.2, C#

I am working on a wizard based application. The navigation between the forms
is handled in button click event handlers for push buttons on the forms. I
want to display the wait cursor when the user presses the button to navigate
to the next form. In the button click event handlers I have the following
code:

// Wait Cursor
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.WaitCursor;
System.Windows.Forms.Cursor.Show();

When each form is initialized I have the following code:

// Set the cursor to default.
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.Default;

The problem is that the WaitCursor is not displayed consistently for every
button click. Sometimes it is displayed and other times the default arrow
cursor stays displayed. I don't see what in my code is causing this??

TIA

Mark
 
Are you talking about the emulator? Yes, emulator will do this periodically.
Ignore it. On the real hardware it will work
 
In that case you may want to try Application.DoEvents right after modifying
the cursor
 
Back
Top