Mouse Cursor appearance

  • Thread starter Thread starter Stan Sainte-Rose
  • Start date Start date
S

Stan Sainte-Rose

Hi,

I have a datagrid with several records.
By double clicking on a line I load a winform.
I would like to know how to change the mouse cursor appearance while the
new form is loading

Thanks for your help

Stan
 
Hi Stan,
at start
me.cursor = cursors.waitcursor

at end
me.cursor = cursors.default

I hope this helps a little bit?
 
Yes it does, thks.. but...when do I know that the new form is loaded ?
Stan
 
Hi Stan,

I first did look at your previous question.

Normaly loading of a form is so fast you would not see it.
Only if there is a process before it that takes some time than you can set
the wait cursor.

Set wait cursor
do process
set default cursor
show other window

Cor
 
* "Stan Sainte-Rose said:
I have a datagrid with several records.
By double clicking on a line I load a winform.
I would like to know how to change the mouse cursor appearance while the
new form is loading

You can set the form's 'Cursor' property to, for example,
'Cursors.WaitCursor' or you can set 'Cursor.Current'.
 

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