Click here to Skip to main content
15,887,776 members

Comments by anushka Dilshan (Top 1 by date)

anushka Dilshan 1-Dec-14 5:33am View    
I assume that this form is the main form or the first form that you have declared in the application.cs file if so do not close this form because it will close the app just hide the form (this.hide())

if you want to close the main (this) form you have to close it after you have opened a new form



Enquiry enq = new Enquiry(UName.Text);
enq.Show();
this.Close();