Kosmo零
Kosmo零

Reputation: 4151

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?

Upvotes: 4

Views: 6611

Answers (2)

user18443
user18443

Reputation:

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

Upvotes: 2

Loathing
Loathing

Reputation: 5266

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

Upvotes: 6

Related Questions