Click here to Skip to main content
15,867,686 members
Articles / Multimedia / GDI+

A Reflective and Translucent Glass Panel

Rate me:
Please Sign up or sign in to vote.
4.50/5 (13 votes)
1 Oct 2008CPOL 79.4K   6.3K   50   13
Component derived from Panel that acts like a window (glass)
Image 1

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)


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

Comments and Discussions

 
QuestionWindows 10 & Framework 4.6 Pin
Member 118830773-Nov-15 9:53
Member 118830773-Nov-15 9:53 
GeneralGood But Not Working with other controls see details Pin
stelios198422-May-13 21:42
stelios198422-May-13 21:42 
Questioncompact framework compatibility Pin
Moosavi S.M.24-Jun-12 4:46
Moosavi S.M.24-Jun-12 4:46 
QuestionNot work in Windows 7 Pin
Member 439692024-Apr-12 18:53
Member 439692024-Apr-12 18:53 
QuestionCan you please provide a c# version ? Pin
Failed Noob2-Oct-11 4:47
Failed Noob2-Oct-11 4:47 
QuestionTransparency Problems Pin
Ibsy31-Dec-10 2:32
professionalIbsy31-Dec-10 2:32 
GeneralNice atricle Pin
L Viljoen30-Sep-10 21:24
professionalL Viljoen30-Sep-10 21:24 
GeneralRe: Nice atricle Pin
(Nick Waelti)11-Oct-10 20:16
(Nick Waelti)11-Oct-10 20:16 
GeneralRe: Nice atricle Pin
L Viljoen11-Oct-10 21:00
professionalL Viljoen11-Oct-10 21:00 
GeneralRe: Nice atricle Pin
Failed Noob2-Oct-11 5:02
Failed Noob2-Oct-11 5:02 
GeneralRe: Nice atricle Pin
Southmountain12-Dec-15 10:54
Southmountain12-Dec-15 10:54 
GeneralImplementing the control Pin
SushilKumar178322-Nov-09 23:33
SushilKumar178322-Nov-09 23:33 
GeneralGood job Pin
flowermix1-May-09 21:48
flowermix1-May-09 21:48 

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.