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

Opening a form with a command button

P: n/a
What is the code to open a form at the click of a command button?
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
dim objForm as new NameOfForm
objForm.show

hth

greetz Peter

"George Medlock" <ge***********@bellsouth.net> schreef in bericht
news:eu**************@TK2MSFTNGP09.phx.gbl...
What is the code to open a form at the click of a command button?

Nov 21 '05 #2

P: n/a
"George Medlock" <ge***********@bellsouth.net> schrieb:
What is the code to open a form at the click of a command button?


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