[Gambas-user] insert a form inside other form

admhardsoft at ...253... admhardsoft at ...253...
Thu Jun 3 13:47:40 CEST 2010


Thanks work fine with your idea.
Thanks again
Tomas
Sent on the TELUS Mobility network with BlackBerry

-----Original Message-----
From: richard terry <rterry at ...1946...>
Date: Thu, 3 Jun 2010 12:59:18 
To: mailing list for gambas users<gambas-user at lists.sourceforge.net>
Subject: Re: [Gambas-user] insert a form inside other form

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 at 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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


More information about the User mailing list