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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top