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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
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
With Me.TabControl1.TabPages(X)
.Enabled = False
If .Name = "TabPage2" Or .Name = "TabPage4" Then
.Enabled = True
End If
End With
Next
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.