I'm creating a program where I need to create new tabpages containing the controls of a pre-designed tabpage and I can't figure out what to do.
1) I can already make new instances of a tabpage using this command...
Private Sub btnNewProvider_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNewProvider.Click
If Me.TabControl2.TabPages(0).Text = "" Then
Me.TabControl2.TabPages.Add(New TabPage(cbProvider.Text))
End If
End Sub
The problem here now is how can I create a new tab with the same controls as the previous one I designed?
Thanks in advance for your help. God speed
1) I can already make new instances of a tabpage using this command...
Private Sub btnNewProvider_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNewProvider.Click
If Me.TabControl2.TabPages(0).Text = "" Then
Me.TabControl2.TabPages.Add(New TabPage(cbProvider.Text))
End If
End Sub
The problem here now is how can I create a new tab with the same controls as the previous one I designed?
Thanks in advance for your help. God speed