VB.NETGeneral VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
You to set the Enabled to true or false. The example below will answer your question
Dim iTotalTabs = Me.TabControl1.TabCount()
Dim X As Integer
For X = 0 To iTotalTabs - 1
.Enabled = False
If .Name = "TabPage2" Or .Name = "TabPage4" Then
.Enabled = True
hello, I try to disable a tabpages in vb.net but it doesn't work properly , if try to do this Me.TabControl1.TabPages(1).Enabled = False it let me enter to de tabpages ..please help as soon as posible.