Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. disable/enabled tabpages in tabcontrol

disable/enabled tabpages in tabcontrol

Scheduled Pinned Locked Moved Visual Basic
tutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gladsmhe
    wrote on last edited by
    #1

    Does anyone know how to disable a tabpage on a tabcontrol but leave the others enabled.

    J 1 Reply Last reply
    0
    • G gladsmhe

      Does anyone know how to disable a tabpage on a tabcontrol but leave the others enabled.

      J Offline
      J Offline
      Juvil John
      wrote on last edited by
      #2

      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

      G 1 Reply Last reply
      0
      • J Juvil John

        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

        G Offline
        G Offline
        gladsmhe
        wrote on last edited by
        #3

        tnx a lot :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups