user control

  • Thread starter Thread starter RobcPettit
  • Start date Start date
R

RobcPettit

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
 
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.
 
Back
Top