Click here to Skip to main content
Licence 
First Posted 11 Jan 2005
Views 47,221
Bookmarked 36 times

Collapsible Panel

By | 11 Jan 2005 | Article
A collapsible panel user control.

Sample Image

Introduction

Ever ran out of screen area to display all of the form widgets? Here's the solution, a control to manage your user interface widgets. A two state control container that expands and shrinks, giving a tidy effect to the UI.

Using the code

  1. Add CollapsablePanel.cs to your project or add the assembly to your project references.
  2. Open the host form in design view, drag and drop the control on the form.
  3. Drop all of the widgets required onto a panel (System.Windows.Forms.Panel).
  4. Arrange the widgets and set the "ContentPane" property of the control to the panel you made.
  5. Set the "Button_Text" for the caption text, "Animation_Rate", and "ContentPane_HEIGHT" (maximum height for the content pane).

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Sufian Mehmood Sheikh

Web Developer

Pakistan Pakistan

Member

Had been programming for the last 6years, experience in C, C#, JAVA, J2EE, SQL, OpenGL, TAPI. Currently working as a .NET(C#) developer at F3 Technologies, Pakistan. Areas of interests are User Interface design, desktop application programming.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralCannot add a panel to the contenpane Pinmemberwalaa anwar4:53 11 Jul '10  
GeneralRe: Cannot add a panel to the contenpane PinmemberSufian Mehmood Sheikh21:37 11 Jul '10  
GeneralRe: Cannot add a panel to the contenpane Pinmemberwalaa anwar22:54 12 Jul '10  
GeneralBug with Animation_Rate=1 Pinmembermav.northwind6:54 12 Jan '05  
GeneralRe: Bug with Animation_Rate=1 PinmemberSufian Mehmood Sheikh2:03 14 Jan '05  
GeneralRe: Bug with Animation_Rate=1 Pinmembermav.northwind2:36 14 Jan '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 12 Jan 2005
Article Copyright 2005 by Sufian Mehmood Sheikh
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid