SpeakComputers.com online store
Electronics Software Computers Handhelds Laptops and Tablets Mobile Phones Digital Cameras Camcorders Games Music Books Sport Mens and Womens Watches Power Tools Household appliances

PRODUCTS

Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010

ColorPickerButton, DevComponents.

Namespace: DevComponents.DotNetBar
Assembly: DevComponents.DotNetBar2.dll
Using: DevComponents.DotNetBar;
Declaring: DevComponents.DotNetBar.ColorPickerButton();

Creating the ColorPickerButton.

DevComponents.DotNetBar.ColorPickerButton colorpick = new DevComponents.DotNetBar.ColorPickerButton();
colorpick.Location = new Point(200, 200);
colorpick.Size = new Size(37, 23);
//Create a transparent png image file 16x16 and add it to your project resources.
colorpick.Image = global ::WindowsApplication2.Properties.Resources.blank;
colorpick.SelectedColorImageRectangle = new System.Drawing.Rectangle(2, 2, 12, 12);
this.Controls.Add(colorpick);

Crating a SelectedColorChanged event.

colorpick.SelectedColorChanged += new EventHandler(colorpick_SelectedColorChanged);

Responding to the SelectedColorChanged event.

void colorpick_SelectedColorChanged(object sender, EventArgs e)
{
DevComponents.DotNetBar.ColorPickerButton colorpicked = (DevComponents.DotNetBar.ColorPickerButton)sender;
MessageBox.Show(colorpicked.SelectedColor.ToString());
}

Screenshots - ColorPickerButton, DevComponents.

ColorPickerButton examples from the DevComponents Windows Forms Programming control set.

Home About Privacy Policy Resouces Search

Copy Right 2006 SpeakComputers.com - All Rights Reserved.