Click here to Skip to main content
Licence CPOL
First Posted 3 Feb 2007
Views 22,868
Downloads 467
Bookmarked 22 times

Panel with blend and bordercolors

By | 12 Feb 2007 | Article
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)

About the Author

Star Vega

Software Developer

Belgium Belgium

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralError when set Anchor or Dock Pinmemberqhoangpro20:33 11 Feb '07  
Greate! However I found some error when this panel set Anchor or Dock: Panel drawn incorrect. This error occurs in runtime and in design time, it drawn normal.
Could you review it? D'Oh! | :doh:
AnswerRe: Error when set Anchor or Dock PinmemberJan Geerinckx7:09 12 Feb '07  

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.

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