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 question

TabControl question

Scheduled Pinned Locked Moved C#
questionalgorithmsdata-structurestutorial
4 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.
  • A Offline
    A Offline
    aalex675
    wrote on last edited by
    #1

    I am trying to find an existing control or find out how to make a custom one that allows me to have either a listbox or treeview on the left instead of a tabstrip at the top. This is how it is done in both the VS2008 Options and Word 2007 Options and I really like it, but after searching all morning I haven't really made any progress. I have started writing custom controls to try and combine a treeview with a tabcontrol, but haven't made much progress. So, I will just start with this: Does anyone know of a tabcontrol that will show the tabs in a list or tree? Thanks in advance

    P 1 Reply Last reply
    0
    • A aalex675

      I am trying to find an existing control or find out how to make a custom one that allows me to have either a listbox or treeview on the left instead of a tabstrip at the top. This is how it is done in both the VS2008 Options and Word 2007 Options and I really like it, but after searching all morning I haven't really made any progress. I have started writing custom controls to try and combine a treeview with a tabcontrol, but haven't made much progress. So, I will just start with this: Does anyone know of a tabcontrol that will show the tabs in a list or tree? Thanks in advance

      P Offline
      P Offline
      Pedram Behroozi
      wrote on last edited by
      #2

      I don't know if there's an existing one but you can simply use a SplitContainer, in the left side add a TreeView, in the right side add some Panels and in NodeMouseClick event call related Panel.

      While (true) { Human.isLearnable = true; }

      A 1 Reply Last reply
      0
      • P Pedram Behroozi

        I don't know if there's an existing one but you can simply use a SplitContainer, in the left side add a TreeView, in the right side add some Panels and in NodeMouseClick event call related Panel.

        While (true) { Human.isLearnable = true; }

        A Offline
        A Offline
        aalex675
        wrote on last edited by
        #3

        Thanks for replying. I have considered this, but feel that working with multiple layered panels in the designer is messy at best and it just feels like there must be a better solution. Since posting the question I have tried what I want to do in WPF and it is very easy so I may just go with that, but if anyone has any other ideas, I would be glad to hear them.

        P 1 Reply Last reply
        0
        • A aalex675

          Thanks for replying. I have considered this, but feel that working with multiple layered panels in the designer is messy at best and it just feels like there must be a better solution. Since posting the question I have tried what I want to do in WPF and it is very easy so I may just go with that, but if anyone has any other ideas, I would be glad to hear them.

          P Offline
          P Offline
          Pedram Behroozi
          wrote on last edited by
          #4

          aalex675 wrote:

          feel that working with multiple layered panels in the designer is messy

          Agreed, but sounds messy or not, you have Controls (Buttons, TextBoxes, etc.) and you have to add them in your Form in anyway.

          aalex675 wrote:

          if anyone has any other ideas

          Add the Controls in Run-Time.

          While (true) { Human.isLearnable = true; }

          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