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. Control grouping on Windows form?

Control grouping on Windows form?

Scheduled Pinned Locked Moved C#
designquestion
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.
  • M Offline
    M Offline
    Mutty
    wrote on last edited by
    #1

    I have a small area on a windows form that, based on user input, should have different controls displayed. The way I'm thinking to do it is to just overlap all the controls in design, and then change the .visible property of individual controls as needed. Ugly. Is there a better way to do this? I don't want to use tabs, since the space is small and I don't want the other tabs visible. Thanks -mutty

    L 1 Reply Last reply
    0
    • M Mutty

      I have a small area on a windows form that, based on user input, should have different controls displayed. The way I'm thinking to do it is to just overlap all the controls in design, and then change the .visible property of individual controls as needed. Ugly. Is there a better way to do this? I don't want to use tabs, since the space is small and I don't want the other tabs visible. Thanks -mutty

      L Offline
      L Offline
      Luis Alonso Ramos
      wrote on last edited by
      #2

      Use panels. Put all controls belonging to a "tab" inside a panel of their own. Overlap the panels, and show the panel that should be visible. Hiding a panel automatically hides all controls inside of it. -- LuisR


      Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

      M 1 Reply Last reply
      0
      • L Luis Alonso Ramos

        Use panels. Put all controls belonging to a "tab" inside a panel of their own. Overlap the panels, and show the panel that should be visible. Hiding a panel automatically hides all controls inside of it. -- LuisR


        Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

        M Offline
        M Offline
        Mutty
        wrote on last edited by
        #3

        Thank you, this works very well. -mutty

        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