Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Still having difficulty linking to a "subform". Would appreciate any ideas. I have a main form with a variable number of check boxes. If the users selects a checkbox, I need to open another form with checkboxes etc. I may have several levels of forms.

 

Thanks

  • *Experts*
Posted

If you want to open a new form when a checkbox is selected then simply checking for the value in the CheckChanged event would do it. And then:

DIm formvar As New FormType
formvar.Show()

Or if this is not what you are looking for, could you please try to explain your problem again?

Posted

Question

 

I have following code

dim form2 as new form

form2.show()

 

It displays a blank form for form2.

My problems is how to get real code for form2 displayed?

 

I guess I don't see how code for mutiple forms is resident at the same time??? or is it???

 

Thanks

  • *Experts*
Posted (edited)

You are declaring a Form object, which is blank indeed. You need to create an object of the type you created. If your form is called Form2 then declare it like this:

Dim f2 As New Form2 'not Form but Form2

Edited by mutant

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...