Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make ColorDialog to allow to set chosen color's transparency?

I don't see any fields available for that. I tried all this:

        ColorDialog cd = new ColorDialog();
        cd.AnyColor = true;
        cd.AllowFullOpen = true;
        cd.SolidColorOnly = false;   

but it probably does something else.

If it impossible to do so with win forms control, maybe there is WPF color picker that I could use in WPFHost element?

like image 230
Kosmo零 Avatar asked Oct 19 '25 11:10

Kosmo零


2 Answers

The AlphaColorDialog project can be downloaded from sourceforge at: https://sourceforge.net/projects/alpha-color-dialog/

Source C# files are in the src folder in the zip file.

enter image description here

like image 114
Loathing Avatar answered Oct 21 '25 03:10

Loathing


You can try these ones from Cyotek, it has series of controls including a dialog with Alpha and other controls

http://www.cyotek.com/blog/colorpicker-controls-for-windows-forms

enter image description here


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!