Replicate TabPage, and inside controls (labels, textboxes,etc) of TabControl?
I would like to found proper way to replicate TabPage, and it's inside controls. By meaning proper way, as currently I have only in mind to write down long code behind, like:
Dim NewLabel as new Label
NewLabel.Name = "LabelTest"
Dim NewTextBox as new TextBox
NewTextBox.Name = "TextBoxTest"
I have around 20-30 controls inside TabPage, and I would like to avoid writing long code.
Honestly, I really not sure if there is shortcut of replicating TabPage.