user control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RobcPettit@yahoo.co.uk

    #1

    user control

    Hi, this sounds like a daft question but, if Im adding several tabds,
    and I want to have the same layout in each tab, eg textbox-treeview-
    labels, which is the the best way to do it. Would I be better of
    creating a user control and add this when adding tabpage, or just
    adding text-treeview-labels when adding tabpage.
    Regards Robert
  • cfps.Christian

    #2
    Re: user control

    On Dec 14, 7:52 am, "RobcPet...@yah oo.co.uk" <RobcPet...@yah oo.co.uk>
    wrote:
    Hi, this sounds like a daft question but, if Im adding several tabds,
    and I want to have the same layout in each tab, eg textbox-treeview-
    labels, which is the the best way to do it. Would I be better of
    creating a user control and add this when adding tabpage, or just
    adding text-treeview-labels when adding tabpage.
    Regards Robert
    If you have the SAME layout on each page I wouldn't do a tab control
    at all but rather change the text on the controls as need be. If you
    need to break apart the logic for easy maintenance I would possibly do
    the same thing but in a usercontrol.

    However if you will be changing portions of the logic I would go with
    a usercontrol that you can change the control dynamically and add the
    other stuff to the tabpage as needed.

    Comment

    Working...