Click here to Skip to main content
Licence CPOL
First Posted 1 Oct 2008
Views 25,159
Downloads 1,270
Bookmarked 45 times

A Reflective and Translucent Glass Panel

By | 1 Oct 2008 | Article
Component derived from Panel that acts like a window (glass)

Introduction

This component is the logical suite of the AlphaGradientPanel published here on CodeProject. It replaces the original System.Windows.Form.Panel by a nifty glassy one.

Background

No idea, I wanted to have glass.

Using the Code

The panel has three main properties. 

  • The glass color (GlassColor) which defines the base tint of the glass panel.
  • The glass opacity (Opacity) which defines the opacity of the panel.
  • Whether the mouse cursor is reflected on the panel (MouseReflection).

It is mainly used like any other panel would be used.

Points of Interest

It's far from perfect and you are to have a good graphic card to use it, but the effect is kind of cool.

History 

  • v. 1.0 - October 2008

License

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

About the Author

Nicolas Wälti

Software Developer (Senior)

Switzerland Switzerland

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
QuestionNot work in Windows 7 PinmemberMember 439692018:53 24 Apr '12  
QuestionCan you please provide a c# version ? PinmemberFailed Noob4:47 2 Oct '11  
QuestionTransparency Problems PinmemberIbsy2:32 31 Dec '10  
GeneralNice atricle PinmemberChona117121:24 30 Sep '10  
GeneralRe: Nice atricle Pinmember(Nick Waelti)20:16 11 Oct '10  
GeneralRe: Nice atricle PinmemberChona117121:00 11 Oct '10  
GeneralRe: Nice atricle PinmemberFailed Noob5:02 2 Oct '11  
GeneralImplementing the control PinmemberSushilKumar178323:33 22 Nov '09  
GeneralGood job Pinmemberflowermix21:48 1 May '09  

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
Web01 | 2.5.120517.1 | Last Updated 1 Oct 2008
Article Copyright 2008 by Nicolas Wälti
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid