Does Application.UseWaitCursor Property actually apply to all threads in the application?

  • Thread starter Thread starter Academia
  • Start date Start date
A

Academia

Application.UseWaitCursor Property

When this property is set to true, the UseWaitCursor property of all open
forms in the application will be set to true.


From what I see it actually applies only to the main thread where I have the
Application.UseWaitCursor=True and not to other threads in the application.
Is that what you'd expect?

This is what I see, except for one routine in which the wait cursor appears
in a thread the main thread started - rather than in the main thread where
Application.UseWaitCursor=True is executed.

Any ideas how that can happen?



Thanks
 
can you clarify your question? Are you creating forms on different threads or
are all forms created on the same thread? Can you post a short but complete
example? Thanks

--iwdu15
 
Have a main thread with a form and it starts another thread with a form.

I set Application.UseWaitCursor Property to true in the main thread.

Most of the time I see the wait cursor in the main thread only. (There is
one exception.)


I would think the documentation which says:

When this property is set to true, the UseWaitCursor property
of all open forms in the application will be set to true.

implies it should appear in all threads. I hope the word "application"
should really be "thread".



Thanks
 
Back
Top