5,666,547 members and growing! (17,361 online)
Email Password   helpLost your password?
Languages » VB.NET » General     Intermediate License: The Code Project Open License (CPOL)

Panel with blend and bordercolors

By Star Vega

Panel with blend and bordercolors
VB, Windows, .NET 2.0, .NETVisual Studio, VS2005, Dev

Posted: 3 Feb 2007
Updated: 12 Feb 2007
Views: 12,086
Bookmarked: 10 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
6 votes for this Article.
Popularity: 3.16 Rating: 4.06 out of 5
1 vote, 16.7%
1
0 votes, 0.0%
2
1 vote, 16.7%
3
3 votes, 50.0%
4
1 vote, 16.7%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article
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



Occupation: Software Developer
Location: Belgium Belgium

Other popular VB.NET articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
GeneralError when set Anchor or Dockmemberqhoangpro21:33 11 Feb '07  
AnswerRe: Error when set Anchor or DockmemberJan Geerinckx8:09 12 Feb '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 12 Feb 2007
Editor:
Copyright 2007 by Star Vega
Everything else Copyright © CodeProject, 1999-2008
Web18 | Advertise on the Code Project