Is it possible to disable tabcontrols and enable tabpages

No .. disabling a parent container will disable its child controls as well. Are you trying to stop a user from changing tabs but let them be able to work with the current tab? If so you can do this:

Public Class frmTab
	Private _locked As Boolean = False

	Private Sub ButtonLockTab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonLockTab.Click
		LockTab(True)
	End Sub

	Private Sub ButtonUnlockTab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonUnlockTab.Click
		LockTab(False)
	End Sub

	Private Sub LockTab(ByVal Lock As Boolean)
		_locked = Lock
	End Sub

	Private Sub TabControl1_Selecting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TabControlCancelEventArgs) Handles TabControl1.Selecting
		If (_locked) Then
			e.Cancel = True
		End If
	End Sub
End Class
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.