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.
 
Back
Top