[Gambas-user] insert a form inside other form

admhardsoft at ...253... admhardsoft at ...253...
Sun Jun 6 15:32:14 CEST 2010


Hi but now I need to remove from a button and insert the new form belong to the option in that butoon, the idea is remove one and insert new one, all of this inside within a form.

Thanks any help pls
Tomas
Sent on the TELUS Mobility network with BlackBerry

-----Original Message-----
From: admhardsoft at ...253...
Date: Thu, 3 Jun 2010 11:47:40 
To: mailing list for gambas users<gambas-user at lists.sourceforge.net>
Subject: Re: [Gambas-user] insert a form inside other form

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
------------------------------------------------------------------------------
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