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. how to use splitter control ?

how to use splitter control ?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
6 Posts 5 Posters 8 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.
  • H Offline
    H Offline
    hdv212
    wrote on last edited by
    #1

    i want to use splitter control in vc# 2005, but how to do ? thanks

    G Steve EcholsS P 3 Replies Last reply
    0
    • H hdv212

      i want to use splitter control in vc# 2005, but how to do ? thanks

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Drag and drop it from toolbox on your form

      #region signature my articles #endregion

      H 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        Drag and drop it from toolbox on your form

        #region signature my articles #endregion

        H Offline
        H Offline
        hdv212
        wrote on last edited by
        #3

        you joking!? i know this, but i don't know how to set it's properties and attributes ?

        S 1 Reply Last reply
        0
        • H hdv212

          i want to use splitter control in vc# 2005, but how to do ? thanks

          Steve EcholsS Offline
          Steve EcholsS Offline
          Steve Echols
          wrote on last edited by
          #4

          1. Drop the control you want on the left hand side on the form, and dock it left. 2. Drop the splitter control on your form (it will dock to the left automatically). 3. Drop the control you want on the right hand side on the form, and dock it fill. That should be it.


          - S 50 cups of coffee and you know it's on!

          • S
            50 cups of coffee and you know it's on!
            Code, follow, or get out of the way.
          1 Reply Last reply
          0
          • H hdv212

            you joking!? i know this, but i don't know how to set it's properties and attributes ?

            S Offline
            S Offline
            Scott Dorman
            wrote on last edited by
            #5

            You set it's properties just like you would with any other control. Is this .NET 2.0? If so, you automatically get two panels (a left and right, by default) that you can then drop other controls onto. If it's earlier than .NET 2.0, you need to drop a panel on the form, drop the splitter control, and then drop another panel. If I remember correctly, the splitter will automatically dock left...if not you will need to set the dock properties by hand. After that, you just drop controls onto the respective panels.

            ----------------------------- In just two days, tomorrow will be yesterday.

            1 Reply Last reply
            0
            • H hdv212

              i want to use splitter control in vc# 2005, but how to do ? thanks

              P Offline
              P Offline
              PeteMcNamee
              wrote on last edited by
              #6

              There are actually 2 different controls that provide similar functionality. There is the 'legacy' splitter control that is the same as the previous versions of visual studio. You have to drop a panel, then the splitter, then another panel. The better control, IMO, is the SplitContainer. This shows up with a default left and right panels already configured. You can change the orientation so it is top and bottom. It is a container control so you can drop pretty much whatever you want inside of the contained panels. You'll most likely want to set the minimum sizes for the panels (property names will be Panel1MinSize and Panel2MinSize. This will keep the user from shrinking them too far. I hope that helps a little.

              Pete

              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