Hello....Im making a vc# proj...I just want to know what is code on opening a new form while closing my current form....tanx

Recommended Answers

All 3 Replies

Hello....Im making a vc# proj...I just want to know what is code on opening a new form while closing my current form....tanx

Well you just write following code on close button click:

Form2 f2=new Form2();
f2.show();
this.close();

Mark this thread as solved if your problem will solved.....

Hello....Im making a vc# proj...I just want to know what is code on opening a new form while closing my current form....tanx

Please mark this thread as solved, if your problem is solved.............

If you don't want to, you don't have to close the Form if you still need it.
Start with 2 forms and toggle between them with the Show and Hide methods.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.