Link to home
Start Free TrialLog in
Avatar of davoman
davomanFlag for United Kingdom of Great Britain and Northern Ireland

asked on

GDI + Background gradient

Hi there

I want to create a background colour scheme to my form so i get a nice gradient effect like on the windows 2003 themes etc

how can i do this

cheers

DAvoman
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davoman

ASKER

Does this code stop the problems of the label controls not showing transparent propoerly

Only showing the grey back ground of the form
Avatar of AlexFM
AlexFM

This code only draws form background with gradient color.
To support XP visual styles by standard way without any additional efforts you can use Application.EnableVisualStyles Method.
Avatar of Howard Cantrell
check here for free XP software - like ... menus, toolbars, XP look colors, etc....

http://www.divil.co.uk/net/
I tried AlexFMs code with the BackColor of a Label set to Color.Transparency and it properly displayed the gradient behind it.
Avatar of davoman

ASKER

That is just the job thank you very much