michael_hk
Centurion
Hi,
I have a strange winform that will not be closed even the user clicks on the "X" button at the top right hand corner (no response after clicking). I don't know the reason, but I guess this may be caused by the dynamic loading of controls to the form at runtime (I can't control this behaviour).
My Question is is it possible to handle the click event of the "X" button myself so that I can call Application.Exit()?
Thanks for your help.
Michael
I have a strange winform that will not be closed even the user clicks on the "X" button at the top right hand corner (no response after clicking). I don't know the reason, but I guess this may be caused by the dynamic loading of controls to the form at runtime (I can't control this behaviour).
My Question is is it possible to handle the click event of the "X" button myself so that I can call Application.Exit()?
Thanks for your help.
Michael