In any form we have in the corner three small buttons minimize,restore down, close
i want to manage the close button so when i click on it , i redirect to the main form
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
FroglegPosted May 27, 2012, 4:59 PM
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
//do whatever
}