Whenever I click on form's red cross close button I want to close form, but I need to click it twice to close the form.I need to click it only one to close it.
I don.t know what the cause,please help
thank you
robin
Whenever I click on form's red cross close button I want to close form, but I need to click it twice to close the form.I need to click it only one to close it.
I don.t know what the cause,please help
thank you
robin
use the Close() method
Michael , where to use Close() ? can please explain it ?
private void button_Click(object sender, EventArgs e)
{
this.Close(); // or form.Close(); // or Application.Close();
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.