Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set a tabcontrol so no tab is selected

Status
Not open for further replies.

KLK000

MIS
May 22, 2002
37
US
How can you set a tabcontrol so no tab is selected? I tried tabcontrol.selectedindex = -1 but that causes an error.
 
Hi KLKOO
You have to disable all the TabPages in that TAB
here is example
Dim MYPage as tabpage
For Each MYPage in TabControl.TabPages
MyPage.Enabled=false
Next

Nouman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top