G
Guest
I have a form, and from the form when a user clicks a button, it instantiates
control that will be doing a lot of logic. I am trying to use
System.Threading.ThreadPool.QueueUserWorkItem to spawn a background thread
off the pool. I stepped through the logic, and everything seems to go
through fine when the control is initialized, and my main form continues to
work correctly. The only issue is that the control seems to not render
properly and freeze (even after its contructor has been called and completed).
Any ideas or suggestions on how to run a control in a different thread than
the main windows form?
control that will be doing a lot of logic. I am trying to use
System.Threading.ThreadPool.QueueUserWorkItem to spawn a background thread
off the pool. I stepped through the logic, and everything seems to go
through fine when the control is initialized, and my main form continues to
work correctly. The only issue is that the control seems to not render
properly and freeze (even after its contructor has been called and completed).
Any ideas or suggestions on how to run a control in a different thread than
the main windows form?