Open a form

  • Thread starter Thread starter reidarT
  • Start date Start date
R

reidarT

In vb6 I use form.show to open a form.
How do I open forms in vb.net?
regards
reidarT
 
assuming the form name's is frmX:

Dim myForm as new frmX
frmX.showDialog()
 
* "reidarT said:
In vb6 I use form.show to open a form.
How do I open forms in vb.net?

\\\
Dim f As New FooForm()
f.Show()
///

- or -

\\\
Dim f As New FooForm()
f.ShowDialog()
f.Dispose()
///
 
Reider,

The sample from Hal is a showdialog, something the same as an own made
messagebox.

Have a look to the message from Herfried for the difference of that.

Cor
 
There is a typo. It should be ...
Dim myForm as new frmX
myForm.ShowDialog()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top