Add Custom Color in ColorDialog
-
Hello to All, How can i add custom color in ColorDialog. Thanks
If you can think then I Can.
you mean red color for example
EASY COME EASY GO
-
you mean red color for example
EASY COME EASY GO
-
No, ColorDialog box have a option of Custom Color. In these boxes we can add our selected color.It may be red or according to R,G,B.
If you can think then I Can.
If it has the option, then what is your problem? Just turn the option on! Or is there more to your query?
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
If it has the option, then what is your problem? Just turn the option on! Or is there more to your query?
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
No Dear this option is only in GUI. my question is that is any option by using programmingly i can add custom color in Colordialog box.
If you can think then I Can.
Have you tried this?
ColorDialog cd = new ColorDialog(); cd.CustomColors = new int\[\] {1, 2000, 20000, 255, 255 \* 0x100, 255 \* 0x10000}; cd.ShowDialog();
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
Hello to All, How can i add custom color in ColorDialog. Thanks
If you can think then I Can.
To create a custom color, 1. In the More Colors dialog box, click Custom... . The Color dialog box is displayed. 2 Try one of the following: a. Use the color matrix and the saturation gradient to create a color by clicking inside the matrix. Then use the saturation gradient pointer to select a saturation level. b. Enter the HSL or RGB values for the custom color. The custom color is displayed in the Color/Solid box. 3. If you want to create more colors, click Add to Custom Colors to add the color to the Custom colors palette. You can then repeat step 2 to create other colors. 4. Click OK to assign the color to the page element that you have selected on the page.
-
Have you tried this?
ColorDialog cd = new ColorDialog(); cd.CustomColors = new int\[\] {1, 2000, 20000, 255, 255 \* 0x100, 255 \* 0x10000}; cd.ShowDialog();
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy