Clone a tabpage in tabControl

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I have a question where I cannot find an answer for honestly....

I've created a tabControl on my form with one tab filled with 11 textboxes & 22 comboboxes, all layed out nice. Did much work on this...
Now I need more identical copies of this tab (max 22 I think) in my tabControl, adding a tab will be done by a button.

All textboxes & comboboxes must be individual cause I need the info that is filled in.
Any advice on how to perform this operation?
If you need more info please ask, I'm in need for a solution.

Thank you very much.

Greetings,
Tom.
 
Create a user control with textboxes & comboboxes and add a set of properties
you can use to access these controls. When adding new tab, simply create new
instance of you control, add it to the collection of controls for this tab and
set its properties e.g. docking, etc.


HTH.
Greetings, Artur
 
Back
Top