Make Tab Control pages invisible?

H

Hakan Naslund

I have a tab control with about 10 pages (or tabs) and when I load this form
I want to make every tab except the first one invisible...

Tried this on the form load event, but gets an error...

For a = 1 To MainTab.Pages.Count
MainTab.Pages(a).IsVisible = False
Next a

How to correctly refer to the IsVisible property of each page?
 
R

Rick Brandt

Hakan Naslund said:
I have a tab control with about 10 pages (or tabs) and when I load this form
I want to make every tab except the first one invisible...

Tried this on the form load event, but gets an error...

For a = 1 To MainTab.Pages.Count
MainTab.Pages(a).IsVisible = False
Next a

How to correctly refer to the IsVisible property of each page?

It's not IsVisible, just Visible.
 
Top