Open form?

Hi

I just wonder how to make one form open a new form and then close it self




Answer this question

Open form?

  • Chikodef

    hi,

    to open form you can open the origional form

    form2.show()

    or you can open instance

    form2 frm = new form2()

    frm.show()

    you can use show or showdialog , show dialog will not allow you to deal with the main form unless you close the dialog

    to make the form close itself

    me.hide()

    or

    me.close()

    don't close your start up form or your application will be closed, you can close your startup form if you set this property, right click your project in solution explorer, select application tab, the last option shutdown mode = when last form closes

    hope this helps



  • Open form?