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

I can't get a form to call. (I'm new to VB)

P: n/a
I have a button that I want to click and bring up another form. I can't
find the command to do this. I've mostly worked with MS Access macros. But
what's the command to open a form in VB.NET?
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The simplest command is something like this:

Dim f As New FormClassNameHere
f.Show

You can also call

f.ShowDialog

Nov 21 '05 #2

P: n/a
"George Medlock" <ge***********@bellsouth.net> schrieb:
I have a button that I want to click and bring up another form. I can't
find the command to do this. I've mostly worked with MS Access macros. But
what's the command to open a form in VB.NET?


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

Showing a form modally:

\\\
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://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.