user control

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
 
C

cfps.Christian

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top