
System.Windows.Forms.Form
There is an event for exactly this purpose, called (oddly enough) Closing.
You can have the designer add the event to you form (click on the form, then
double click the event in the properties tab), or add code like this
yourself;
this.Closing += new
System.ComponentModel.CancelEventHandler(this.MyForm_Closing);
private void MyForm_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
...
Quote:
}
--
Nick Holmes
Coyote Software, GmbH.
Quote:
> Hello,
> I have created a form using System.Windows.Forms.Form.
> I'd like to add a Close event handler of the form.
> Is there any example?
> Regards,
> ccm.