Multiple Forums?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am new to VB.Net so go easy on me, now on to the question that I have. I
would like to have multiple forms in my application, but I need help doing
this. I know that I can inherit a form but, I believe I am looking for
something a little deferent.

Example:

Form1 would display a radPick button and a btnEnter. If the user selected
radPick and clicked btnEnter it would display Form2.

Form2 would display a new set of controls for the user to interact with.

How would I go about doing this?

This is what I did, but it would not work:

If radPick.Checked = True Then
Form2.Show()
End If
 
Hello Shane,

I'm new as well, but I think I know the answer to your problem.

Declare a form2 object in Module scope.

Dim frmTwo as new form2

And use frmTwo.Show() instead of form2.show()

I was just working with similar code today, and I believe that is the answer
to your question.

Richard.
 
THANKS RICHARD :)

That really helped out a lot.

Richard Aubin said:
Hello Shane,

I'm new as well, but I think I know the answer to your problem.

Declare a form2 object in Module scope.

Dim frmTwo as new form2

And use frmTwo.Show() instead of form2.show()

I was just working with similar code today, and I believe that is the answer
to your question.

Richard.
 
Where are the controls supposed to show up, form1 or form2?

Richard.
 
How did you create your controls? Are they runtime or design time?

If they are design time then in the visual designer, you should be able to
see your controls. And automatically when form2 pops open, your controls
should be visible, unless your hid them via properties.

I think anyhow.

Richard.
 
All of my visible are set to True. So I have no clue why they are not showing
up
 
Maybe I need to load them into form2 some how?

Shane said:
All of my visible are set to True. So I have no clue why they are not showing
up
 
Hey I got it to work I had to do:

Dim frmCheck1 As New frmCheck1

you were right and thanks for the Help!
 

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