Hi,
I have a thread that needs some components from the Form it was called by. I thought of creating a new method Create that would require in his parameters these components, and then set them so I can use them in my thread (I suspect there is a better way to do it). But, when I change the Create method, the Execute method is never called... any idea why?
Also, I did some testing, and when I start a thread with a call to the Sleep method, even my main program sleeps... any idea how to fix this?
I have a thread that needs some components from the Form it was called by. I thought of creating a new method Create that would require in his parameters these components, and then set them so I can use them in my thread (I suspect there is a better way to do it). But, when I change the Create method, the Execute method is never called... any idea why?
Also, I did some testing, and when I start a thread with a call to the Sleep method, even my main program sleeps... any idea how to fix this?