Opening a form with a command button

  • Thread starter Thread starter George Medlock
  • Start date Start date
G

George Medlock

What is the code to open a form at the click of a command button?
 
George Medlock said:
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()
///
 

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