Click here to Skip to main content
6,634,665 members and growing! (15,858 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.0VS2005, Dev
Posted:3 Feb 2007
Updated:12 Feb 2007
Views:16,025
Bookmarked:18 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
6 votes for this article.
Popularity: 3.16 Rating: 4.06 out of 5
1 vote, 16.7%
1

2
1 vote, 16.7%
3
3 votes, 50.0%
4
1 vote, 16.7%
5
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


Member

Occupation: Software Developer
Location: Belgium Belgium

Other popular VB.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
GeneralError when set Anchor or Dock Pinmemberqhoangpro21:33 11 Feb '07  
AnswerRe: Error when set Anchor or Dock PinmemberJan 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-2009
Web19 | Advertise on the Code Project