cyotek / Cyotek.Windows.Forms.ColorPicker

Color picker control suite for Windows Forms applications.
http://cyotek.com/blog/tag/colorpicker
MIT License
149 stars 41 forks source link

how to compile ? #8

Closed pc8181 closed 7 years ago

pc8181 commented 7 years ago

image

cyotek commented 7 years ago

Hello,

That is interpolated strings, a new feature of C# 6. You'd need to be using Visual Studio 2015 or higher.

To fix for your version of Visual Studio, replace

$"{this.Color.R:X2}{this.Color.G:X2}{this.Color.B:X2}"

with

string.Format("{0:X2}{1:X2}{2:X2}", this.Color.R, this.Color.G, this.Color.B)

Or, grab the latest source - I reverted that particular change.

Regards; Richard Moss