disable/enabled tabpages in tabcontrol
-
Just remove the tabpage and add it again if you want to use it. tbSpecialAddMain.TabPages.RemoveAt(1) tbSpecialAddMain.TabPages.Add(tbpMarketingDetails) Or use this Private Sub TabControl1_Selecting(ByVal sender As Object, ByVal e As System.Windows.Forms.TabControlCancelEventArgs) Handles TabControl1.Selecting '\\Disable Selection of tabpage1 If TabControl1.SelectedIndex = 1 Then TabControl1.SelectTab(2) End If End Sub
-
Just remove the tabpage and add it again if you want to use it. tbSpecialAddMain.TabPages.RemoveAt(1) tbSpecialAddMain.TabPages.Add(tbpMarketingDetails) Or use this Private Sub TabControl1_Selecting(ByVal sender As Object, ByVal e As System.Windows.Forms.TabControlCancelEventArgs) Handles TabControl1.Selecting '\\Disable Selection of tabpage1 If TabControl1.SelectedIndex = 1 Then TabControl1.SelectTab(2) End If End Sub