Click here to Skip to main content
13,350,985 members (56,276 online)
Click here to Skip to main content
Add your own
alternative version


65 bookmarked
Posted 3 Nov 2002

PanelBar control for ASP.NET

, 10 Nov 2002
Rate this:
Please Sign up or sign in to vote.
Sample for building ASP.NET custom controls

Sample Image - PanelBar.jpg


The PanelBar control is a rich UI web control. It can be used to build an Outlook-style application. I'm providing this control as a sample for building ASP.NET custom controls. <!--Click here for an online demo.-->

Using the control

The PanelBar has full design support. So, using the control is fairly simple. Just install the component by adding the PanelBar.dll to the list of components in Visual Studio. NET. Drag an instance of the PanelBar component on a form and set the design-time properties. The PanelBar has an items property which gives access to the collection of PanelBarItems. The appearance of each button can be set by using the Text and ImageUrl properties. The PanelBar component also has an ImageUrl property that is used for providing a default image for the buttons.

About the code

The code is very well commented. The following classes are defined:

  • ScrollPanel: implements a scrollable Panel, used as a base class for the PanelBar control
  • PanelBar: implements the PanelBar control
  • PanelBarItem: implements the PanelBar buttons (consists of a LinkButton and an ImageButton)
  • PanelBarControlBuilder: implements the control builder for the PanelBar
  • PanelBarControlDesigner: implements the control designer for the PanelBar


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

Rob Lans
Web Developer
Netherlands Netherlands
No Biography provided

You may also be interested in...


Comments and Discussions

Questionhow to control and extend the control? Pin
honglixing12-Sep-06 22:22
memberhonglixing12-Sep-06 22:22 
GeneralUse of PanelBar Pin
odsby5-Feb-05 16:25
memberodsby5-Feb-05 16:25 
GeneralRe: Use of PanelBar Pin
odsby6-Feb-05 6:35
memberodsby6-Feb-05 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web04 | 2.8.180111.1 | Last Updated 11 Nov 2002
Article Copyright 2002 by Rob Lans
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid