i disable the x button in the form but it also disable the EXIT button that i have create.
the code is
this that i want is to disable the x button that the form has and not the exit button that i have create
the code is
Code:
Initialize component {......... this.Closing += new System.ComponentModel.CancelEventHandler(this.MyForm_Closing); } on the program private void MyForm_Closing(object sender, System.ComponentModel.CancelEventArgs e) { /// stuff e.Cancel = true; /// Do this if you want to keep the form alive, /// and just hide it or something }
Comment