form1.show() problem

Hello,
I don't know how to do this but I anticipate this to be easy...
I have form1 and form2
and I want to open form2 and close form 1 without closing form2...
I've tried:

form2.show()

from Form1...
but it would open form2
but close form1

Thank You!
Keehun Nam



Answer this question

form1.show() problem

  • Ravindra K Agrawal

    Can't be done, unless there's a seperate form that holds both of these. When you close form1, your instance of form2 is lost as well, as it's a member.

  • Albert Valls Rovira

    you can try this code

    add a new form at first

    code:

    dim myform2 as new form2

    myform2.show()

    finalize ' if wanna close form1



  • form1.show() problem