how to swap forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arundhuti
    New Member
    • Mar 2007
    • 1

    #1

    how to swap forms

    i want to know how we can swap two forms in vb????????
  • markmcgookin
    Recognized Expert Contributor
    • Dec 2006
    • 648

    #2
    Originally posted by arundhuti
    i want to know how we can swap two forms in vb????????
    This will open up a new form called frmMyForm (replace that with your forms name)

    Code:
    Dim newform As New frmMyForm
    newForm.Show()
    if you want to close the current form, THEN open the new one it would be:

    Code:
    Dim newform As New frmMyForm
    Me.Close()
    Me.Dispose(True)
    newForm.Show()
    Hope that helps

    Mark

    Comment

    • vijaydiwakar
      Contributor
      • Feb 2007
      • 579

      #3
      Originally posted by arundhuti
      i want to know how we can swap two forms in vb????????
      pls explain the Q in detail

      Comment

      Working...