show/hide tabwindows

johmolan

Well-known member
Joined
Oct 11, 2008
Messages
129
Programming Experience
Beginner
I have a few methods that shows and hides tabwindows.
But i try to find a way to stop adding similar windows.

One method is:
Public Sub Tab1()
TabControl1.TabPages.Insert(0, TabPage1)
TabControl1.Refresh()
End Sub

I would like a msgBox to appear if this tab allready exits.
Does anybody know how i can fix that?
 
I guess there somehow must be a way to check if the tab page is "active" or not.But I can't seem to find the correct way to begin
 
Back
Top