close the window

  • Thread starter Thread starter muahmmed iqbal
  • Start date Start date
M

muahmmed iqbal

i need to close a window in a button click.
how can i do this.I need also to know which function want to use for working this.
Please help with full details...
Thanks in advance
 
Use can use the button event handler as follows

private void button2_Click(object sender, EventArgs e)
{
this.Close();
}

This will close the current form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top