Create subform within the form

brucelim80

Active member
Joined
Apr 20, 2006
Messages
35
Programming Experience
Beginner
hi all,
How do i create a subform embedded on the existing form such as when i click a button on the main form it will open the subform within in the main form ?

Please note that the main form consist of buttons and information.
I know VBA can have a subform inside another form


Thank you
 
Last edited:
Thread moved to Windows Forms forum, Visual Studio forum is for issues regarding the Studio itself.

Three options:
- MDI parent/child forms (common)
- design the other "form" as a UserControl and add it to form like other control, in runtime you add instances of this like other controls to a Controls collection. (common)
- set child forms TopLevel=False and add the form instance to a Controls collection. (uncommon and quirky)
 
Back
Top