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
 

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

Back
Top