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. Windows Forms
  4. slightly complex help with the splitcontainer needed! plz

slightly complex help with the splitcontainer needed! plz

Scheduled Pinned Locked Moved Windows Forms
visual-studiocomdockerhelpquestion
2 Posts 2 Posters 5 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.
  • G Offline
    G Offline
    giddy_guitarist
    wrote on last edited by
    #1

    HI , i'm trying to make a simple version of VS's collapsible pannels. I know there are collapsible panels in the articles section but i want to keep it simple. I use the [Panel] control , i can have it hide and show with the user clicking or hovering over a long flat(looks better) button.But i still dont have one important functionality. The pin feature. In VS , if i click the pin/auto hide button the controls in the panel show up on a SplitContainer panel: http://gidsfiles.googlepages.com/splitcontainer.jpg[^] Even outlook 2007 and probably older versions have this feature: http://gidsfiles.googlepages.com/outlook_expand_todo.jpg[^] If i click that button , the collapsible panel is no more collapsible and is now in a splitcontainer panel. http://gidsfiles.googlepages.com/outlook_expand_splitview.jpg[^] Continuing with my panel concept,i have a litte pin button , i tried removing the Panel from the Form.Controls collection and adding it into splitcontainer.Controls when it is clicked. Like this: Code: private void btnPin_Click(object sender, EventArgs e) { if (splitContainer1.Panel2Collapsed) { splitContainer1.Panel2Collapsed = false; this.Controls.Remove(panel1); splitContainer1.Panel2.Controls.Add(panel1); panel1.Visible = true; } else { splitContainer1.Panel2Collapsed = true; splitContainer1.Panel2.Controls.Remove(panel1); this.Controls.Add(panel1); panel1.Location = new Point(12, 277); panel1.Visible = true; } } Yes , it does not work at all , the panel never shows in the split container. Could someone please help out? Thanks so much Gideon

    S 1 Reply Last reply
    0
    • G giddy_guitarist

      HI , i'm trying to make a simple version of VS's collapsible pannels. I know there are collapsible panels in the articles section but i want to keep it simple. I use the [Panel] control , i can have it hide and show with the user clicking or hovering over a long flat(looks better) button.But i still dont have one important functionality. The pin feature. In VS , if i click the pin/auto hide button the controls in the panel show up on a SplitContainer panel: http://gidsfiles.googlepages.com/splitcontainer.jpg[^] Even outlook 2007 and probably older versions have this feature: http://gidsfiles.googlepages.com/outlook_expand_todo.jpg[^] If i click that button , the collapsible panel is no more collapsible and is now in a splitcontainer panel. http://gidsfiles.googlepages.com/outlook_expand_splitview.jpg[^] Continuing with my panel concept,i have a litte pin button , i tried removing the Panel from the Form.Controls collection and adding it into splitcontainer.Controls when it is clicked. Like this: Code: private void btnPin_Click(object sender, EventArgs e) { if (splitContainer1.Panel2Collapsed) { splitContainer1.Panel2Collapsed = false; this.Controls.Remove(panel1); splitContainer1.Panel2.Controls.Add(panel1); panel1.Visible = true; } else { splitContainer1.Panel2Collapsed = true; splitContainer1.Panel2.Controls.Remove(panel1); this.Controls.Add(panel1); panel1.Location = new Point(12, 277); panel1.Visible = true; } } Yes , it does not work at all , the panel never shows in the split container. Could someone please help out? Thanks so much Gideon

      S Offline
      S Offline
      sinosoidal
      wrote on last edited by
      #2

      Thats something i really want to use too. I though this controls were already available out of the box. Arent they imported somewhere? Nuno

      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