Click here to Skip to main content
12,623,027 members (29,974 online)
Click here to Skip to main content
Add your own
alternative version

Stats

30K views
1.1K downloads
22 bookmarked
Posted

Panel with blend and bordercolors

, 12 Feb 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
Panel with blend and bordercolors
Sample image

Introduction

This class inherits the System.Windows.Forms.Panel. The AlteaPanel adds blend functionality and the possibility to choose the bordercolors. To view the custom bordercolors, you must set the BorderStyle enumeration to None, so the existing FixedSingle and Fixed3D can still be used.

The Borders will be drawn in the Overrides Sub OnPaint, and the Blending background in the Protected Overrides Sub PaintBackground.

It is a quite straightforward code, easy to read and to use. The next step will be adding text, so you can use it as a heading, eg Outlook. So if anyone has any suggestions to make this AlteaPanel better, please tell me!

License

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

Share

About the Author

Star Vega
Software Developer
Belgium Belgium
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralError when set Anchor or Dock Pin
qhoangpro11-Feb-07 21:33
memberqhoangpro11-Feb-07 21:33 
AnswerRe: Error when set Anchor or Dock Pin
Jan Geerinckx12-Feb-07 8:09
memberJan Geerinckx12-Feb-07 8:09 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161128.1 | Last Updated 12 Feb 2007
Article Copyright 2007 by Star Vega
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid