469,282 Members | 2,000 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Open a form

In vb6 I use form.show to open a form.
How do I open forms in vb.net?
regards
reidarT
Nov 21 '05 #1
6 2715
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
* "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


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
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
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


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.

Similar topics

1 post views Thread by Konstantin | last post: by
1 post views Thread by petersk | last post: by
14 posts views Thread by Simon Abolnar | last post: by
3 posts views Thread by rdemyan via AccessMonster.com | last post: by
19 posts views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.