Let say I have windows form with button. And for each click new thread is created. Thread is isolated peace of memory. So, when the form is loaded, the form object is created in the main thread. Now, when the button is pressed - new thread is created. This means that new isolated memory area is allocated for this thread.
My question is: does this new thread will also contain form object or will contain reference to the form? If yes, so how, OS knows that when new thread is created it has to created in it form object. If I'm wrong, so what is created in the new thread?
I hope, I explained correctly my question.
Thank you very much