protected override void OnClick(EventArgs e)
		{
			base.OnClick(e);
    		
			Point p = new Point(0, Height);
			p = PointToScreen(p);
			
			using (ColorPaletteDialog clDlg = new ColorPaletteDialog(p.X, p.Y)) 
			{
				clDlg.ShowDialog();    	 
				if (clDlg.DialogResult == DialogResult.OK) 
				{
					CenterColor = clDlg.Color;
				}
			}
	    		
		}  	    
Example #2
0
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            Point p = new Point(0, Height);

            p = PointToScreen(p);

            using (ColorPaletteDialog clDlg = new ColorPaletteDialog(p.X, p.Y))
            {
                clDlg.ShowDialog();
                if (clDlg.DialogResult == DialogResult.OK)
                {
                    CenterColor = clDlg.Color;
                }
            }
        }