G
Guest
I have some questions regarding Modal forms and would appreciate if someone
could clarify my understanding.
(a) I observed that the modal form's Form_Closing event is generated if I
set the modal form's Visible property to False or call its Hide method. Is
this true? or is it a result of something that I am doing incorrectly?
(b) The ShowDialog method halts all other execution in a single threaded
program till the modal form is closed, right?
(c) I noticed that if I Hide the modal form or set its Visible property to
False, then the ShowDialog method returns. Is this correct behaviour? Is
there a way to avoid this?
TIA.
could clarify my understanding.
(a) I observed that the modal form's Form_Closing event is generated if I
set the modal form's Visible property to False or call its Hide method. Is
this true? or is it a result of something that I am doing incorrectly?
(b) The ShowDialog method halts all other execution in a single threaded
program till the modal form is closed, right?
(c) I noticed that if I Hide the modal form or set its Visible property to
False, then the ShowDialog method returns. Is this correct behaviour? Is
there a way to avoid this?
TIA.