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. tabcontrol problem ? help please ...

tabcontrol problem ? help please ...

Scheduled Pinned Locked Moved C#
helptutorialquestion
5 Posts 5 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, i placed a tabcontrol on my form. but i want to open tabs with button clicks. so what i want is to learn how to hide or erase tabpage headers ? this image http://link.imgshare.us/82jVCE tells what i exactly want. help me please. thanks in advance, bye. ps: there may be other ways to do this but i dont know :( i want to place some buttons on the left hand side of the form and with each button click, i want to open something different (different pages) on the right hand side of that form. i though that it can be done by tabcontrol... i will appreciate your helps if you inform me whether there is other ways to do what i want or not?

    R R S Y 4 Replies Last reply
    0
    • L Lost User

      hi all, i placed a tabcontrol on my form. but i want to open tabs with button clicks. so what i want is to learn how to hide or erase tabpage headers ? this image http://link.imgshare.us/82jVCE tells what i exactly want. help me please. thanks in advance, bye. ps: there may be other ways to do this but i dont know :( i want to place some buttons on the left hand side of the form and with each button click, i want to open something different (different pages) on the right hand side of that form. i though that it can be done by tabcontrol... i will appreciate your helps if you inform me whether there is other ways to do what i want or not?

      R Offline
      R Offline
      rah_sin
      wrote on last edited by
      #2

      if u have allready added the tabpages to tab control at design time then u can remove the tabpages at the time of lloading form tabControl1.TabPages.Clear(); then on button click event u can add tab pages by this way TabPage tb1 = new TabPage("XYZ"); tabControl1.TabPages.Add(tb1);

      rahul

      1 Reply Last reply
      0
      • L Lost User

        hi all, i placed a tabcontrol on my form. but i want to open tabs with button clicks. so what i want is to learn how to hide or erase tabpage headers ? this image http://link.imgshare.us/82jVCE tells what i exactly want. help me please. thanks in advance, bye. ps: there may be other ways to do this but i dont know :( i want to place some buttons on the left hand side of the form and with each button click, i want to open something different (different pages) on the right hand side of that form. i though that it can be done by tabcontrol... i will appreciate your helps if you inform me whether there is other ways to do what i want or not?

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        You may want to consider ditching the tab control altogether and simply showing the appropriate UserControl in response to a button click. /ravi

        My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        • L Lost User

          hi all, i placed a tabcontrol on my form. but i want to open tabs with button clicks. so what i want is to learn how to hide or erase tabpage headers ? this image http://link.imgshare.us/82jVCE tells what i exactly want. help me please. thanks in advance, bye. ps: there may be other ways to do this but i dont know :( i want to place some buttons on the left hand side of the form and with each button click, i want to open something different (different pages) on the right hand side of that form. i though that it can be done by tabcontrol... i will appreciate your helps if you inform me whether there is other ways to do what i want or not?

          S Offline
          S Offline
          Stefan Troschuetz
          wrote on last edited by
          #4

          Add/Remove the TabPages to/from the TabControl.TabPages collection as needed. Or maybe put the controls in different Panels or GroupBoxes that are at the same position and only show the one needed.


          "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

          www.troschuetz.de

          1 Reply Last reply
          0
          • L Lost User

            hi all, i placed a tabcontrol on my form. but i want to open tabs with button clicks. so what i want is to learn how to hide or erase tabpage headers ? this image http://link.imgshare.us/82jVCE tells what i exactly want. help me please. thanks in advance, bye. ps: there may be other ways to do this but i dont know :( i want to place some buttons on the left hand side of the form and with each button click, i want to open something different (different pages) on the right hand side of that form. i though that it can be done by tabcontrol... i will appreciate your helps if you inform me whether there is other ways to do what i want or not?

            Y Offline
            Y Offline
            yueue
            wrote on last edited by
            #5

            I think you may try another way . i suggest you try this : place some Panel Controls . and put your Buttons on that on Left Buttons . you can do click even like that: Panel1.Visible = false; Panel2.Visible = false; Panel3.Visible = true; good luck - from a chinese fans

            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