Click here to Skip to main content
13,044,115 members (102,721 online)
Click here to Skip to main content
Add your own
alternative version


119 bookmarked
Posted 24 Mar 2006

AlphaGradientPanel, an extended panel

, 24 Mar 2006
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 ;)


  • 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

You may also be interested in...

Comments and Discussions

GeneralPanel behind not visible Pin
JonnyNordin9-Jun-07 2:17
memberJonnyNordin9-Jun-07 2:17 
Questionmodify color( ) with code ? Pin
Hqrts30-May-07 0:56
memberHqrts30-May-07 0:56 
GeneralTra sparency Pin
spaceboy17-May-07 4:55
memberspaceboy17-May-07 4:55 
QuestionPanel Bugs [modified] Pin
tricos26-Mar-07 8:44
membertricos26-Mar-07 8:44 
GeneralProblem when copying control Pin
mraviator26-Feb-07 11:06
membermraviator26-Feb-07 11:06 
AnswerRe: Form appearance Pin
Nick Wälti26-Sep-06 3:06
memberNick Wälti26-Sep-06 3:06 
QuestionAlpha Gradient Panel ? Pin
Zaegra9-Aug-06 2:23
memberZaegra9-Aug-06 2:23 
QuestionCan I plead ignorance? Please!? Pin
HankFrid7-Aug-06 12:08
memberHankFrid7-Aug-06 12:08 
AnswerRe: Can I plead ignorance? Please!? Pin
Nick Wälti7-Aug-06 22:05
memberNick Wälti7-Aug-06 22:05 
QuestionRe: Can I plead ignorance? Please!? Pin
852y3agnna6-Jan-07 15:37
member852y3agnna6-Jan-07 15:37 
GeneralBeautifully Done Pin
Joshua Boyle4-Aug-06 9:29
memberJoshua Boyle4-Aug-06 9:29 
QuestionNot a Microsoft.NET Module? Pin
vaderjm3-Aug-06 16:26
membervaderjm3-Aug-06 16:26 
AnswerRe: Not a Microsoft.NET Module? Pin
Nick Wälti3-Aug-06 21:32
memberNick Wälti3-Aug-06 21:32 
GeneralRe: Not a Microsoft.NET Module? Pin
vaderjm5-Aug-06 5:23
membervaderjm5-Aug-06 5:23 
GeneralRe: Not a Microsoft.NET Module? Pin
vaderjm5-Aug-06 5:52
membervaderjm5-Aug-06 5:52 
GeneralSmall problem Pin
Danilo Corallo6-Jul-06 12:46
memberDanilo Corallo6-Jul-06 12:46 
AnswerRe: Small problem Pin
Nick Wälti29-Jul-06 6:33
memberNick Wälti29-Jul-06 6:33 
GeneralCan't load in VB Express Pin
Apopka_Pilot25-May-06 10:43
memberApopka_Pilot25-May-06 10:43 
GeneralRe: Can't load in VB Express Pin
seanwright5-Jul-06 5:05
memberseanwright5-Jul-06 5:05 
QuestionUsage Requirements Pin
rdesigner19-May-06 10:44
memberrdesigner19-May-06 10:44 
AnswerRe: Usage Requirements Pin
Nick Wälti20-May-06 4:37
memberNick Wälti20-May-06 4:37 
QuestionHelp Pin
j.channon16-May-06 23:56
memberj.channon16-May-06 23:56 
GeneralDude, this is tight! Pin
serialc0d310-May-06 3:26
memberserialc0d310-May-06 3:26 
GeneralRe: Dude, this is tight! Pin
Nick Wälti10-May-06 3:31
memberNick Wälti10-May-06 3:31 
GeneralThanks :) Pin
blroy521127-Apr-06 3:40
memberblroy521127-Apr-06 3:40 
GeneralRe: Thanks :) Pin
Nick Wälti29-Jul-06 6:35
memberNick Wälti29-Jul-06 6:35 
QuestionAny VS.NET 2003 Version? Pin
Xiaofeizai13-Apr-06 21:29
memberXiaofeizai13-Apr-06 21:29 
QuestionHow can i implement this feature on my form Pin
shahrokh_hz8-Apr-06 3:16
membershahrokh_hz8-Apr-06 3:16 
AnswerRe: How can i implement this feature on my form Pin
Nick Wälti8-Apr-06 22:18
memberNick Wälti8-Apr-06 22:18 
QuestionWhere's the Article? Pin
unklegwar3-Apr-06 3:09
memberunklegwar3-Apr-06 3:09 
AnswerRe: Where's the Article? Pin
Nick Wälti3-Apr-06 5:26
memberNick Wälti3-Apr-06 5:26 
Generalit is good. Pin
so^fly2-Apr-06 20:23
memberso^fly2-Apr-06 20:23 
GeneralRe: it is good. Pin
Nick Wälti4-Apr-06 7:19
memberNick Wälti4-Apr-06 7:19 
GeneralSweet! Pin
pablleaf31-Mar-06 3:31
memberpablleaf31-Mar-06 3:31 
GeneralRe: Sweet! Pin
Nick Wälti4-Apr-06 7:19
memberNick Wälti4-Apr-06 7:19 
GeneralCan't Debug Pin
keith.b30-Mar-06 5:19
memberkeith.b30-Mar-06 5:19 
QuestionRe: Can't Debug Pin
Nick Wälti31-Mar-06 0:56
memberNick Wälti31-Mar-06 0:56 
Generalgreat Pin
dchan7829-Mar-06 0:56
memberdchan7829-Mar-06 0:56 
GeneralRe: great Pin
Nick Wälti31-Mar-06 0:55
memberNick Wälti31-Mar-06 0:55 
Questiontransparent only to background image on form ? Pin
BillWoodruff28-Mar-06 19:54
memberBillWoodruff28-Mar-06 19:54 
AnswerRe: transparent only to background image on form ? Pin
Nick Wälti28-Mar-06 22:01
memberNick Wälti28-Mar-06 22:01 
GeneralRe: transparent only to background image on form ? Pin
BillWoodruff28-Mar-06 23:29
memberBillWoodruff28-Mar-06 23:29 
QuestionRe: transparent only to background image on form ? Pin
Nick Wälti29-Mar-06 2:02
memberNick Wälti29-Mar-06 2:02 
GeneralI can't extract it. Pin
forever06428-Mar-06 16:42
memberforever06428-Mar-06 16:42 
GeneralRe: I can't extract it. Pin
Nick Wälti28-Mar-06 18:08
memberNick Wälti28-Mar-06 18:08 
GeneralVery Sweeeeeet ! Pin
hammo28-Mar-06 12:59
memberhammo28-Mar-06 12:59 
GeneralRe: Very Sweeeeeet ! Pin
Nick Wälti28-Mar-06 18:09
memberNick Wälti28-Mar-06 18:09 
GeneralLooks great Pin
mor4eus24-Mar-06 19:31
membermor4eus24-Mar-06 19:31 
AnswerRe: Looks great Pin
Nick Waelti24-Mar-06 21:54
memberNick Waelti24-Mar-06 21:54 
GeneralNice! Pin
Vertyg024-Mar-06 6:25
memberVertyg024-Mar-06 6:25 

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
Web02 | 2.8.170713.1 | Last Updated 24 Mar 2006
Article Copyright 2006 by Nicolas Wälti
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid