hazejean Posted October 23, 2003 Posted October 23, 2003 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 Quote
*Experts* mutant Posted October 24, 2003 *Experts* Posted October 24, 2003 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? Quote
hazejean Posted October 24, 2003 Author Posted October 24, 2003 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 Quote
*Experts* mutant Posted October 24, 2003 *Experts* Posted October 24, 2003 (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 October 24, 2003 by mutant Quote
hazejean Posted October 24, 2003 Author Posted October 24, 2003 still problem now says form2 not defined??? I am going in circles here. Thanks for your help Quote
Leaders dynamic_sysop Posted October 24, 2003 Leaders Posted October 24, 2003 do you actually have a Form2 within your project? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.