closing the window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthickRAJKUMAR
    New Member
    • Sep 2007
    • 46

    closing the window

    i am using visual studio ,net window application ,i created two forms namely form1 and form2
    i created the link(button) when i click the button it will show form2 by creatiog the object ,in that the two forms are in open mode how can close the parent window
    and only to display the child window
  • Badshah
    New Member
    • Nov 2007
    • 1

    #2
    Originally posted by karthickRAJKUMA R
    i am using visual studio ,net window application ,i created two forms namely form1 and form2
    i created the link(button) when i click the button it will show form2 by creatiog the object ,in that the two forms are in open mode how can close the parent window
    and only to display the child window

    Hi. My name Is Badshah
    to sole this problem write this code

    parentform.hide ()
    childform.show( )

    Comment

    • karthickRAJKUMAR
      New Member
      • Sep 2007
      • 46

      #3
      Originally posted by Badshah
      Hi. My name Is Badshah
      to sole this problem write this code

      parentform.hide ()
      childform.show( )

      thank u very much i will try it reply u soon

      Comment

      • painkiller
        New Member
        • Nov 2007
        • 17

        #4
        vb.net code:
        =============== ===
        dim frm as new form2
        frm.show()
        me.dispose(true )

        Comment

        Working...