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. C#
  4. a question about tabcontrol ?

a question about tabcontrol ?

Scheduled Pinned Locked Moved C#
question
4 Posts 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    hi all, is it possible to hide (and show) unwanted tabs when dealing with a specific tab ? let's say i've a tabcontrol with 5 pages (first page is only required for a while) and with a button click i want to hide all other 4 pages ? then i make them show again when i need them ?

    K S 2 Replies Last reply
    0
    • L Lost User

      hi all, is it possible to hide (and show) unwanted tabs when dealing with a specific tab ? let's say i've a tabcontrol with 5 pages (first page is only required for a while) and with a button click i want to hide all other 4 pages ? then i make them show again when i need them ?

      K Offline
      K Offline
      KishoreT
      wrote on last edited by
      #2

      If you are using VS2005, you can do it as follows: create dynamic tabs array through code. Create each tab and add to the tab list, when ever you need to hide you can stop loading those tabs. Try and check, else i will give you sample code

      1 Reply Last reply
      0
      • L Lost User

        hi all, is it possible to hide (and show) unwanted tabs when dealing with a specific tab ? let's say i've a tabcontrol with 5 pages (first page is only required for a while) and with a button click i want to hide all other 4 pages ? then i make them show again when i need them ?

        S Offline
        S Offline
        sathish s
        wrote on last edited by
        #3

        I suppose the

        TabControl1.TabPages(1).Visible = False

        Wont work in .Net Framework 1.1. As a work around you use

        TabControl1.TabPages.Add() and TabControl1.TabPages.Remove()

        as when you require tab pages

        R 1 Reply Last reply
        0
        • S sathish s

          I suppose the

          TabControl1.TabPages(1).Visible = False

          Wont work in .Net Framework 1.1. As a work around you use

          TabControl1.TabPages.Add() and TabControl1.TabPages.Remove()

          as when you require tab pages

          R Offline
          R Offline
          RaviBattula
          wrote on last edited by
          #4

          yes, hide and show or Visible =true or false properties are not available for TabPages, Only availble option is Remove and add again. RemoveAt(...) and RemoveByKey(...) are availble and then we can add at any time. Ravi

          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