T
TF
Hi,
I am writing a Windows Application in C#. I want to show wait cursor
while any form control is updated (e.g. ComboBox list is filled) which
takes some time. It works fine when i do like:
Cursor.Current = Cursors.WaitCursor;
UpdateControl();
Cursor.Current = Cursors.Default;
Now to force the form to repaint when some other window is dragged
over it i use Application.DoEvents() that does its work but also
changes the wait cursor before 'UpdateControl()' function returns, if
user move mouse to that control.
Is there any workaround to achieve both repainting and keeping the
wait cursor at the same time?
Thanks
TF
I am writing a Windows Application in C#. I want to show wait cursor
while any form control is updated (e.g. ComboBox list is filled) which
takes some time. It works fine when i do like:
Cursor.Current = Cursors.WaitCursor;
UpdateControl();
Cursor.Current = Cursors.Default;
Now to force the form to repaint when some other window is dragged
over it i use Application.DoEvents() that does its work but also
changes the wait cursor before 'UpdateControl()' function returns, if
user move mouse to that control.
Is there any workaround to achieve both repainting and keeping the
wait cursor at the same time?
Thanks
TF