Display a "wait" graphic when switching between forms

  • Thread starter Thread starter Rod Early
  • Start date Start date
R

Rod Early

What is the best way to display a "wait" graphic (say, an hourglass)
while switching between forms? My application has a form that
requires several seconds of processing before its paint routine
finishes, so I need to give the user some idea that he/she needs to
wait.

Notice that I didn't say "cursor". The device on which I am working
is a touchscreen that does not have a cursor. I had tried changing
the cursor to a WaitCursor, but since the device has no cursor it was
a waste of time.

Thanks,
Rod Early
 
You have to set a

Cursor.Current = Cursors.WaitCursor;

_before_ you call your second form.
In the second form you can switch it back after all your init work is done.
I'm sure, it will display an hourglas even if you don't have a visible
cursor by default.

HTH
Ruediger
 
Back
Top