Thanks xwb.
I checked on the threadIDs and found that the thread that starts a form is different from the main thread.
Again, even if I pass the threadID of the new thread back to the main thread to save it in a list somewhere, if I pass a message to that thread, that thread will not be able...
Thank you xwb for your suggestion.
Your suggestion, I guess, boils down to using LocalDataStoreSlots (I assume that LocalDataStore is the same as "Thread Message Queue"). I create a named LocalDataStoreSlot for each thread and communicate with each thread by writing messages to these...
Hello.
I build an application using Windows Forms.
I spawn a thread that starts a Window Form. I am in a point where I need to send messages to these Windows. When I try to get a handle to the Form's Window (Form->Handle) I get a value of type "Intptr". On the other hand, the methods for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.