On Thursday 03 June 2010 12:14:31 Tomas Rodriguez wrote: > Hi body. > > my doubt is about , How can I insert a form( with controls), inside other > form( in gambas 2)? somebody have any idea or expierence. > > thanks > tomas > > > > --------------------------------------------------------------------------- > --- ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user >
Done off the top of my head, but this should work. 1) Create the form you want to load into a form and call it - lets say MyForm 2) Create another form say FMain and in the IDE put a container on it, say a VBox, call it Vbox_For_MyForm or whatever At the top of FMain in the declarations part of the code: Dim Form2Insert as MyForm Type in this: public Sub Form_Open() Form2Insert = New MyForm(Vbox_For_MyForm) end This should embed ok, if not I'll write you an example and mail it to you. Regards Richard ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user