public ColorSlider()
{
InitializeComponent();
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw |
ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
// load arrow bitmap
Assembly assembly = this.GetType().Assembly;
arrow = new Bitmap(assembly.GetManifestResourceStream("Accord.Controls.Resources.arrow.bmp"));
arrow.MakeTransparent(Color.FromArgb(255, 255, 255));
}