Multiple layout UserControl

Posted by johnm01 on Stack Overflow See other posts from Stack Overflow or by johnm01
Published on 2010-03-26T11:03:32Z Indexed on 2010/03/26 11:33 UTC
Read the original article Hit count: 274

Filed under:
|

Hi all,

I have a UserControl that manages a lot of editable information (like text-boxes). Now I need to make a version of this control that has a different layout (from horizontal to vertical). I can expose the control, like this:

    public TextBox MyText
    {
        get { return myText; }
        set { myText = value; }
    }

i can now manually change the location and size, but this does not give me a visual reposition of them at design time.

Is there a better way of doing this ?

Thanks John

© Stack Overflow or respective owner

Related posts about c#

Related posts about usercontrols