Click here to Skip to main content
Click here to Skip to main content

AlphaGradientPanel, an extended panel

, 24 Mar 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
A panel that has rounded borders, gradients, and transparency.


This is a panel, first of all. Therefore, it has all the advantages of a panel, plus some nice little features.

Using the code

You'll just have to include the component in your toolbox and use it.

The only property that is a bit special is the Colors() property. It is a collection of items and has design-time visibility in the property grid. I'm still trying to achieve transforming the color name that appears in the property grid in a nice drawing... If anybody knows how that can be achieved, please, please, please, let me know Wink | ;)


  • Rounded corners (any one of them or all at the same time).
  • Gradients (from 2 to n colors, with some special effects).
  • Transparency (any color can be made transparent with an "Alpha" value between 0 and 255).
  • Borders, even with rounded corners, have a nice little border.
  • Image inclusion (position, opacity, size, grayscale, and padding).
  • Padding of the content, of the back, and of the docking.


  • Version 1.0.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Nicolas Wälti
Software Developer (Senior)
Switzerland Switzerland
No Biography provided

Comments and Discussions

AnswerRe: Adding an AlphaGradientPanel at runtime? PinmemberNick Waelti1-Oct-08 2:10 
Questiontransparency over controls PinmemberFallakka14-Aug-08 0:06 
GeneralTransparency problem Pinmemberzuraw13-Mar-08 5:06 
GeneralRe: Transparency problem Pinmembercdebel26-Feb-09 10:49 
QuestionException PinmemberBBWicked1-Aug-07 0:46 
Generalsorry but :) Pinmemberdeltadirac29-Jul-07 9:05 
QuestionRemoving a color Pinmemberthe-rpd1-Jul-07 6:20 
GeneralNice control Pinmemberthe-rpd26-Jun-07 10:38 
GeneralRe: Nice control Pinmember(Nick Waelti)28-Jun-07 1:11 
GeneralRe: Nice control Pinmemberthe-rpd28-Jun-07 7:40 
GeneralUse in applications PinmemberBryanTKinkel12-Jun-07 4:40 
AnswerRe: Use in applications PinmemberNick Waelti12-Jun-07 4:55 
GeneralRe: Use in applications PinmemberBryanTKinkel13-Jun-07 5:29 
GeneralRe: Use Commercial in applications PinmemberMatt Lowrance26-Sep-07 7:39 
GeneralRe: Use Commercial in applications PinmemberNick Waelti26-Sep-07 21:19 
GeneralPanel behind not visible PinmemberJonnyNordin9-Jun-07 3:17 
Questionmodify color( ) with code ? PinmemberHqrts30-May-07 1:56 
GeneralTra sparency Pinmemberspaceboy17-May-07 5:55 
QuestionPanel Bugs [modified] Pinmembertricos26-Mar-07 9:44 
GeneralProblem when copying control Pinmembermraviator26-Feb-07 12:06 
AnswerRe: Form appearance PinmemberNick Wälti26-Sep-06 4:06 
QuestionAlpha Gradient Panel ? PinmemberZaegra9-Aug-06 3:23 
QuestionCan I plead ignorance? Please!? PinmemberHankFrid7-Aug-06 13:08 
AnswerRe: Can I plead ignorance? Please!? PinmemberNick Wälti7-Aug-06 23:05 
QuestionRe: Can I plead ignorance? Please!? Pinmember852y3agnna6-Jan-07 16:37 
GeneralBeautifully Done PinmemberJoshua Boyle4-Aug-06 10:29 
QuestionNot a Microsoft.NET Module? Pinmembervaderjm3-Aug-06 17:26 
AnswerRe: Not a Microsoft.NET Module? PinmemberNick Wälti3-Aug-06 22:32 
GeneralRe: Not a Microsoft.NET Module? Pinmembervaderjm5-Aug-06 6:23 
GeneralRe: Not a Microsoft.NET Module? Pinmembervaderjm5-Aug-06 6:52 
GeneralSmall problem PinmemberDanilo Corallo6-Jul-06 13:46 
AnswerRe: Small problem PinmemberNick Wälti29-Jul-06 7:33 
GeneralCan't load in VB Express PinmemberApopka_Pilot25-May-06 11:43 
GeneralRe: Can't load in VB Express Pinmemberseanwright5-Jul-06 6:05 
QuestionUsage Requirements Pinmemberrdesigner19-May-06 11:44 
AnswerRe: Usage Requirements PinmemberNick Wälti20-May-06 5:37 
QuestionHelp Pinmemberj.channon17-May-06 0:56 
GeneralDude, this is tight! Pinmemberserialc0d310-May-06 4:26 
GeneralRe: Dude, this is tight! PinmemberNick Wälti10-May-06 4:31 
GeneralThanks :) Pinmemberblroy521127-Apr-06 4:40 
GeneralRe: Thanks :) PinmemberNick Wälti29-Jul-06 7:35 
QuestionAny VS.NET 2003 Version? PinmemberXiaofeizai13-Apr-06 22:29 
QuestionHow can i implement this feature on my form Pinmembershahrokh_hz8-Apr-06 4:16 
AnswerRe: How can i implement this feature on my form PinmemberNick Wälti8-Apr-06 23:18 
QuestionWhere's the Article? Pinmemberunklegwar3-Apr-06 4:09 
AnswerRe: Where's the Article? PinmemberNick Wälti3-Apr-06 6:26 
Generalit is good. Pinmemberso^fly2-Apr-06 21:23 
GeneralRe: it is good. PinmemberNick Wälti4-Apr-06 8:19 
GeneralSweet! Pinmemberpablleaf31-Mar-06 4:31 
GeneralRe: Sweet! PinmemberNick Wälti4-Apr-06 8:19 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150326.1 | Last Updated 24 Mar 2006
Article Copyright 2006 by Nicolas Wälti
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid