so thats it I decided to move to VB.net, and currently im looking its feuters, seems nice BTW.
And to my question:
I created main form called frmMain and 3 severl forms frm1, frm2 and frm3.
On the main form i created 3 buttons which each one of them should open sec forms, now the question is cani use the forms like we used in VB6 thing calles group box?
what i need is to load forms onto the main form, can i, and how?
Last edited by ArChAnGeL2k3; Feb 28th, 2004 at 04:42 PM.
Well it isnt that simply, i mean to show other forms inside the main, like i said i got 4 forms, 3 simple forms, and one "Main",
i need to load into the main form, the other 3 like labels and syuff...
if u dont understand what i mean ill explain better with pictures.
Originally posted by ArChAnGeL2k3 Well it isnt that simply, i mean to show other forms inside the main, like i said i got 4 forms, 3 simple forms, and one "Main",
i need to load into the main form, the other 3 like labels and syuff...
if u dont understand what i mean ill explain better with pictures.
You mean , MDI forms . If no , then I don't follow . I'd better to show some pictures if you have .
i created a multiple forms project.
and one form that used to be the main formwith the menu that connects all the other forms.
now till now i used to show and hide different forms one after the other, now i want to use my main form which has horizontal menu like my main form and all the other form swill load into him, and not insted him.
and yes i think it called mdi chiled.
If you have come from VB6, you will be fully aware of Parent/Child forms. There are some differences in .NET, all of which are advantageous.
You can, either in code or at design time,:
Set the MDIContainer property of form1 to True.
Set the MDIParent property of forms2 etc to form1. (Use "Me" if using code and referencing from form1)
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
This is an extension of System.Windows.Forms.Form. you just inherit from Ezekiel.Windows.Forms.FormEx and construct your form with a key and you have a global ref to your form in Ezekiel.Windows.Forms.FormEx.Forms[key/index].......
Just run the exe and read the c# code code. sorry I don't really know VB.Net anymore. If some on asks I'll make a vb sample project. Put it's simple to use this.
This works perfectly and it's just like back in vb6 except your form is only global when you consruct it using a key.....