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

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

George Medlock

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?
 
The simplest command is something like this:

Dim f As New FormClassNameHere
f.Show

You can also call

f.ShowDialog
 
George Medlock said:
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()
///
 

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