c# - Winform form closed event -
I have 2 forms, main and child when a button is clicked on the main button, the child form loads . Can I catch up primarily when the child's form stops from subscribing to the child's closure event?
Yes you can, it is very straightforward:
Private Zero LoadChildForm_Click (Object Sender, EventArgs e) {ChildForm Form = New ChildForm (); Form.FormClosed + = New FormClosedEventHandler (ChildFormClosed); Form.Show (); } Zero ChildFormClosed (Object Sender, FormClosedEventArgs E) {// Some useful}
Comments
Post a Comment