[MonoDevelop] 2 widgets in the same container using form designer?

Rampage atomikramp at email.it
Wed Aug 25 07:27:18 EDT 2010


Michael Hutchinson ha scritto:
> On Tue, Aug 24, 2010 at 6:55 AM, Anirudh <anirudh at anirudhsanjeev.org> wrote:
>   
>>>>> i think the subject pretty explains it all, i was wondering if by using
>>>>> the
>>>>> designer it was possible to add 2 widgets in the same container and then
>>>>> from the source of my application manage the display of one or the other
>>>>> using the show() and hide() methos.
>>>>>           
>> I used to use a VBox or a HBox and drag many widgets. Then Use the
>> visible property to swap between them. Of course, this isn't a correct
>> way to do it, but it's a rough hack.
>>
>> I'd done a similar variation in some older code, which you can see here:
>> http://github.com/ninjagod/splatter/blob/master/Frontend/AddQueryDialog.cs#L144
>>     
>
> Another reasonably common solution to this is to use a Notebook with
> the tabs disabled, then programmatically change the page.
>
>   
Seems to be the cleanest way.... i like it, i'm gonna try this out

thank you very much to everyone for the help :)


More information about the Monodevelop-list mailing list