Going from one form to another

  • Thread starter Thread starter rushabhkapasi
  • Start date Start date
R

rushabhkapasi

I want to know how to go from one form to another form in vb.net while closing the first form.
 
Depends on how you're closing the first form but if it's by a button you can
do it like this

dim frm as new Form2
frm.show
Form1.Close

You could also put it in the Closing even of Form1 MyBase.Close (or Closing)
but you won't need the Form1.Close line.

If you using a button or something to close the first form you may need to
add
I want to know how to go from one form to another form in vb.net while closing the first form.
engine supports Post Alerts, Ratings, and Searching.
 

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