hello
i have a closing method taht occurs whenever i close the form(X-on the top right side) :
this.Closing += new System.ComponentModel.CancelEventHandler(this.Form_Closing);
and i have a "Cancel" button that suppose to do exectly the same operation:
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
how can i operate the 'this.Form_Closing' function also when i click the "Cancel" button without copy all my operations in 'this.Form_Closing' function or opposite, how can i operate the 'this.buttonCancel_Click' function when i press the X.
thanks
koby