Click here to Skip to main content
14,982,215 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
certain apps provide users with a way of changing its skin color. I dont mean creating a skinable app. what i mean is similar to the windows aero theme where you can change the color...

what i want to do is provide a color pallet with standard colors and an option to select shades not provided in the basic pallet...

another example of this is, say, the paint app. You are provided with few basic colors shown in little squares. You can either select one of them or select an option that displays a 2-paned window which displays all the possible shades and you use your mouse to select the shade of color you want...

what this is about:

This is to provide the user of my app a simple way of changing the background color of the forms, buttons and text by either using a solid color or selecting an image(image or color choice is only for form background. buttons and labels allow color change only and no image) as well as set any level of transparency (1=highest transparency,255=fully opaque, no 0 for 100% transparency).

I am using visual studio, C# and windows OS.
Posted
Comments
   
Tag it! WPF, Forms, what?!
--SA

1 solution

Do you have a dislike for the ColorDialog class[^]?
ColorDialog cd = new ColorDialog();
if (cd.ShowDialog() == DialogResult.OK)
    {
    BackColor = cd.Color;
    }
   
Comments
   
As simple as that, a 5.
--SA

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900