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. Resize quastion (Spliter)

Resize quastion (Spliter)

Scheduled Pinned Locked Moved C#
questionhelp
2 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.
  • Y Offline
    Y Offline
    ytubis
    wrote on last edited by
    #1

    I am trying to work with the spliter class for my resize controls and i can not get how it works. Can you help me and explain what it does and how it does it? In my project i have 6 controlls that are in the form, i do not use panel,should I? The form is very simple: It has mainmanu and then toolbar and then in each corner of the form there is a controll, i mean it looks like this: mainmanu toolbar treeview lisbox treevew listbox How can i resize it all with the Spliter? Thanks for you help[ :)

    A 1 Reply Last reply
    0
    • Y ytubis

      I am trying to work with the spliter class for my resize controls and i can not get how it works. Can you help me and explain what it does and how it does it? In my project i have 6 controlls that are in the form, i do not use panel,should I? The form is very simple: It has mainmanu and then toolbar and then in each corner of the form there is a controll, i mean it looks like this: mainmanu toolbar treeview lisbox treevew listbox How can i resize it all with the Spliter? Thanks for you help[ :)

      A Offline
      A Offline
      Andrew Lygin
      wrote on last edited by
      #2

      You should use panels to do this. You must have at least two panels on your form. If you use VS 2005 than you can simply use SplitContainer control. If not then: 1. Add panel1 to the form and set panel1.Dock = Top. 2. Add splitter1 to the form and set splitter1.Dock = Top. 3. Add panel2 to the form and set panel2.Dock = Fill. 4. Add treeview1 to the panel1 and set treeview1.Dock = Left. 5. Add splitter2 to the panel1 and set splitter2.Dock = Left. 6. Add listbox1 to the panel1 and set listbox1.Dock = Fill. 7. Do steps 4-6 for the panel2.

      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