Click here to Skip to main content
15,893,337 members
Articles / Programming Languages / Visual Basic
Article

Panel with blend and bordercolors

Rate me:
Please Sign up or sign in to vote.
4.06/5 (6 votes)
12 Feb 2007CPOL 39.6K   1.3K   22   2
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)


Written By
Software Developer
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralError when set Anchor or Dock Pin
qhoangpro11-Feb-07 20:33
qhoangpro11-Feb-07 20:33 
AnswerRe: Error when set Anchor or Dock Pin
Star Vega12-Feb-07 7:09
Star Vega12-Feb-07 7: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.