Hi Guys,
I add my tab pages at runtime, I am trying to select a tab from a sub.
This is how i generate my tabs
this does'nt select any tab...
I add my tab pages at runtime, I am trying to select a tab from a sub.
This is how i generate my tabs
Code:
Dim tp As New TabPage("User Management")
Dim f2 As New fmUserManagement
f2.TopLevel = False ' REQUIRED
f2.FormBorderStyle = Windows.Forms.FormBorderStyle.None ' optional
f2.Dock = DockStyle.Fill ' optional
tp.Controls.Add(f2)
f2.Show()
TabControl1.TabPages.Add(tp)
Code:
AdminParent.TabControl1.SelectTab("User Management")
Comment