E
Elp
Hi,
A probably trivial question but i can't figure out the answer myself.
When you call ShowDialog() on a Form to display it modaly, the code located
after the ShowDialog call is not executed until the Form is closed. So it
looks like the thread in which the form runs is frozen or asleep. Of
course, it is not as the form still processes events and you can call
mehtods from this Form, etc. So what really happens when you call
ShowDialog? How come the code after it is not immediately executed? If the
ShowDialog method was just waiting for the form to be closed, the UI thread
would be frozen which is not the case. I'm sure i'm missing something
simple but what?
Thanks.
A probably trivial question but i can't figure out the answer myself.
When you call ShowDialog() on a Form to display it modaly, the code located
after the ShowDialog call is not executed until the Form is closed. So it
looks like the thread in which the form runs is frozen or asleep. Of
course, it is not as the form still processes events and you can call
mehtods from this Form, etc. So what really happens when you call
ShowDialog? How come the code after it is not immediately executed? If the
ShowDialog method was just waiting for the form to be closed, the UI thread
would be frozen which is not the case. I'm sure i'm missing something
simple but what?
Thanks.