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

Anirudh anirudh at anirudhsanjeev.org
Tue Aug 24 06:55:06 EDT 2010


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


More information about the Monodevelop-list mailing list