By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,548 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

Open a form

P: n/a
In vb6 I use form.show to open a form.
How do I open forms in vb.net?
regards
reidarT
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
assuming the form name's is frmX:

Dim myForm as new frmX
frmX.showDialog()

"reidarT" <re****@eivon.no> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
In vb6 I use form.show to open a form.
How do I open forms in vb.net?
regards
reidarT

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004
Nov 21 '05 #2

P: n/a
* "reidarT" <re****@eivon.no> scripsit:
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()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

P: n/a


Thanks a lot
reidarT

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #4

P: n/a
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
Nov 21 '05 #5

P: n/a
There is a typo. It should be ...
Dim myForm as new frmX
myForm.ShowDialog()

"Hal Rosser" <hm******@bellsouth.net> wrote in message
news:8V*******************@bignews5.bellsouth.net. ..
assuming the form name's is frmX:

Dim myForm as new frmX
frmX.showDialog()

"reidarT" <re****@eivon.no> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
In vb6 I use form.show to open a form.
How do I open forms in vb.net?
regards
reidarT

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004

Nov 21 '05 #6

P: n/a


regards
reidarT

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.