private void InitializeComponent()
 {
     lblR         = new Label();
     label1       = new Label();
     label2       = new Label();
     numB         = new NumericUpDown();
     numG         = new NumericUpDown();
     numR         = new NumericUpDown();
     numH         = new NumericUpDown();
     numS         = new NumericUpDown();
     numV         = new NumericUpDown();
     label3       = new Label();
     label4       = new Label();
     label5       = new Label();
     numA         = new NumericUpDown();
     lblA         = new Label();
     panel1       = new Panel();
     pnlColorBox  = new BufferedPanel();
     pnlColorBar  = new BufferedPanel();
     panel2       = new Panel();
     pnlAlpha     = new BufferedPanel();
     panel3       = new Panel();
     txtColorCode = new TextBox();
     ((System.ComponentModel.ISupportInitialize)numB).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numG).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numR).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numH).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numS).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numV).BeginInit();
     ((System.ComponentModel.ISupportInitialize)numA).BeginInit();
     panel1.SuspendLayout();
     panel2.SuspendLayout();
     panel3.SuspendLayout();
     SuspendLayout();
     //
     // lblR
     //
     lblR.Font      = new Font("Lucida Console", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
     lblR.Location  = new Point(3, 77);
     lblR.Name      = "lblR";
     lblR.Size      = new Size(19, 20);
     lblR.TabIndex  = 2;
     lblR.Text      = "R";
     lblR.TextAlign = ContentAlignment.MiddleRight;
     //
     // label1
     //
     label1.Font      = new Font("Lucida Console", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
     label1.Location  = new Point(3, 115);
     label1.Name      = "label1";
     label1.Size      = new Size(19, 20);
     label1.TabIndex  = 3;
     label1.Text      = "B";
     label1.TextAlign = ContentAlignment.MiddleRight;
     //
     // label2
     //
     label2.Font      = new Font("Lucida Console", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
     label2.Location  = new Point(3, 96);
     label2.Name      = "label2";
     label2.Size      = new Size(19, 20);
     label2.TabIndex  = 4;
     label2.Text      = "G";
     label2.TextAlign = ContentAlignment.MiddleRight;
     //
     // numB
     //
     numB.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numB.Location = new Point(23, 116);
     numB.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numB.Name     = "numB";
     numB.Size     = new Size(47, 20);
     numB.TabIndex = 5;
     //
     // numG
     //
     numG.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numG.Location = new Point(23, 97);
     numG.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numG.Name     = "numG";
     numG.Size     = new Size(47, 20);
     numG.TabIndex = 6;
     //
     // numR
     //
     numR.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numR.Location = new Point(23, 78);
     numR.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numR.Name     = "numR";
     numR.Size     = new Size(47, 20);
     numR.TabIndex = 7;
     //
     // numH
     //
     numH.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numH.Location = new Point(23, 6);
     numH.Maximum  = new decimal(new int[]
     {
         360,
         0,
         0,
         0
     });
     numH.Name     = "numH";
     numH.Size     = new Size(47, 20);
     numH.TabIndex = 13;
     //
     // numS
     //
     numS.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numS.Location = new Point(23, 25);
     numS.Name     = "numS";
     numS.Size     = new Size(47, 20);
     numS.TabIndex = 12;
     //
     // numV
     //
     numV.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numV.Location = new Point(23, 44);
     numV.Name     = "numV";
     numV.Size     = new Size(47, 20);
     numV.TabIndex = 11;
     //
     // label3
     //
     label3.Font      = new Font("Lucida Console", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
     label3.Location  = new Point(3, 24);
     label3.Name      = "label3";
     label3.Size      = new Size(19, 20);
     label3.TabIndex  = 10;
     label3.Text      = "S";
     label3.TextAlign = ContentAlignment.MiddleRight;
     //
     // label4
     //
     label4.Font      = new Font("Lucida Console", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
     label4.Location  = new Point(3, 43);
     label4.Name      = "label4";
     label4.Size      = new Size(19, 20);
     label4.TabIndex  = 9;
     label4.Text      = "V";
     label4.TextAlign = ContentAlignment.MiddleRight;
     //
     // label5
     //
     label5.Font      = new Font("Lucida Console", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
     label5.Location  = new Point(3, 5);
     label5.Name      = "label5";
     label5.Size      = new Size(19, 20);
     label5.TabIndex  = 8;
     label5.Text      = "H";
     label5.TextAlign = ContentAlignment.MiddleRight;
     //
     // numA
     //
     numA.Anchor = AnchorStyles.Top | AnchorStyles.Left
                   | AnchorStyles.Right;
     numA.Location = new Point(23, 135);
     numA.Maximum  = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     numA.Name     = "numA";
     numA.Size     = new Size(47, 20);
     numA.TabIndex = 15;
     numA.Value    = new decimal(new int[]
     {
         255,
         0,
         0,
         0
     });
     //
     // lblA
     //
     lblA.Font      = new Font("Lucida Console", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
     lblA.Location  = new Point(3, 134);
     lblA.Name      = "lblA";
     lblA.Size      = new Size(19, 20);
     lblA.TabIndex  = 14;
     lblA.Text      = "A";
     lblA.TextAlign = ContentAlignment.MiddleRight;
     //
     // panel1
     //
     panel1.Controls.Add(pnlColorBox);
     panel1.Controls.Add(pnlColorBar);
     panel1.Dock     = DockStyle.Left;
     panel1.Location = new Point(0, 0);
     panel1.Name     = "panel1";
     panel1.Size     = new Size(217, 187);
     panel1.TabIndex = 16;
     //
     // pnlColorBox
     //
     pnlColorBox.BackColor  = Color.Transparent;
     pnlColorBox.Location   = new Point(3, 3);
     pnlColorBox.Name       = "pnlColorBox";
     pnlColorBox.Size       = new Size(180, 180);
     pnlColorBox.TabIndex   = 0;
     pnlColorBox.Paint     += new PaintEventHandler(pnlColorBox_Paint);
     pnlColorBox.MouseDown += new MouseEventHandler(pnlColorBox_MouseDown);
     pnlColorBox.MouseMove += new MouseEventHandler(pnlColorBox_MouseMove);
     pnlColorBox.MouseUp   += new MouseEventHandler(pnlColorBox_MouseUp);
     //
     // pnlColorBar
     //
     pnlColorBar.BackColor  = Color.Transparent;
     pnlColorBar.Location   = new Point(189, 3);
     pnlColorBar.Name       = "pnlColorBar";
     pnlColorBar.Size       = new Size(25, 180);
     pnlColorBar.TabIndex   = 1;
     pnlColorBar.Paint     += new PaintEventHandler(pnlColorBar_Paint);
     pnlColorBar.MouseDown += new MouseEventHandler(pnlColorBar_MouseDown);
     pnlColorBar.MouseMove += new MouseEventHandler(pnlColorBar_MouseMove);
     pnlColorBar.MouseUp   += new MouseEventHandler(pnlColorBar_MouseUp);
     //
     // panel2
     //
     panel2.Controls.Add(pnlAlpha);
     panel2.Dock     = DockStyle.Left;
     panel2.Location = new Point(217, 0);
     panel2.Name     = "panel2";
     panel2.Size     = new Size(20, 187);
     panel2.TabIndex = 17;
     //
     // pnlAlpha
     //
     pnlAlpha.Anchor = AnchorStyles.Top | AnchorStyles.Left
                       | AnchorStyles.Right;
     pnlAlpha.BackColor  = Color.Transparent;
     pnlAlpha.Location   = new Point(3, 3);
     pnlAlpha.Name       = "pnlAlpha";
     pnlAlpha.Size       = new Size(14, 180);
     pnlAlpha.TabIndex   = 2;
     pnlAlpha.Paint     += new PaintEventHandler(pnlAlpha_Paint);
     pnlAlpha.MouseDown += new MouseEventHandler(pnlAlpha_MouseDown);
     pnlAlpha.MouseMove += new MouseEventHandler(pnlAlpha_MouseMove);
     pnlAlpha.MouseUp   += new MouseEventHandler(pnlAlpha_MouseUp);
     //
     // panel3
     //
     panel3.Controls.Add(txtColorCode);
     panel3.Controls.Add(numH);
     panel3.Controls.Add(lblR);
     panel3.Controls.Add(label1);
     panel3.Controls.Add(numA);
     panel3.Controls.Add(label2);
     panel3.Controls.Add(lblA);
     panel3.Controls.Add(numB);
     panel3.Controls.Add(numG);
     panel3.Controls.Add(numS);
     panel3.Controls.Add(numR);
     panel3.Controls.Add(numV);
     panel3.Controls.Add(label5);
     panel3.Controls.Add(label3);
     panel3.Controls.Add(label4);
     panel3.Dock     = DockStyle.Fill;
     panel3.Location = new Point(237, 0);
     panel3.Name     = "panel3";
     panel3.Size     = new Size(77, 187);
     panel3.TabIndex = 18;
     //
     // txtColorCode
     //
     txtColorCode.Location     = new Point(6, 161);
     txtColorCode.Name         = "txtColorCode";
     txtColorCode.Size         = new Size(64, 20);
     txtColorCode.TabIndex     = 16;
     txtColorCode.Text         = "000000FF";
     txtColorCode.TextAlign    = HorizontalAlignment.Center;
     txtColorCode.TextChanged += new EventHandler(txtColorCode_TextChanged);
     txtColorCode.KeyPress    += new KeyPressEventHandler(txtColorCode_KeyPress);
     //
     // GoodColorControl
     //
     Controls.Add(panel3);
     Controls.Add(panel2);
     Controls.Add(panel1);
     MinimumSize = new Size(310, 187);
     Name        = "GoodColorControl";
     Size        = new Size(314, 187);
     ((System.ComponentModel.ISupportInitialize)numB).EndInit();
     ((System.ComponentModel.ISupportInitialize)numG).EndInit();
     ((System.ComponentModel.ISupportInitialize)numR).EndInit();
     ((System.ComponentModel.ISupportInitialize)numH).EndInit();
     ((System.ComponentModel.ISupportInitialize)numS).EndInit();
     ((System.ComponentModel.ISupportInitialize)numV).EndInit();
     ((System.ComponentModel.ISupportInitialize)numA).EndInit();
     panel1.ResumeLayout(false);
     panel2.ResumeLayout(false);
     panel3.ResumeLayout(false);
     panel3.PerformLayout();
     ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     btnOkay           = new Button();
     btnCancel         = new Button();
     pnlColors         = new Panel();
     lblOld            = new Label();
     lblNew            = new Label();
     chkAlpha          = new CheckBox();
     pnlNew            = new BufferedPanel();
     pnlOld            = new BufferedPanel();
     goodColorControl1 = new GoodColorControl();
     pnlColors.SuspendLayout();
     SuspendLayout();
     //
     // btnOkay
     //
     btnOkay.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
     btnOkay.Location = new Point(200, 221);
     btnOkay.Name     = "btnOkay";
     btnOkay.Size     = new Size(59, 24);
     btnOkay.TabIndex = 0;
     btnOkay.Text     = "Okay";
     btnOkay.UseVisualStyleBackColor = true;
     btnOkay.Click += new EventHandler(btnOkay_Click);
     //
     // btnCancel
     //
     btnCancel.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
     btnCancel.Location = new Point(267, 221);
     btnCancel.Name     = "btnCancel";
     btnCancel.Size     = new Size(59, 24);
     btnCancel.TabIndex = 1;
     btnCancel.Text     = "Cancel";
     btnCancel.UseVisualStyleBackColor = true;
     btnCancel.Click += new EventHandler(btnCancel_Click);
     //
     // pnlColors
     //
     pnlColors.Anchor = AnchorStyles.Top | AnchorStyles.Bottom
                        | AnchorStyles.Left;
     pnlColors.Controls.Add(pnlNew);
     pnlColors.Controls.Add(pnlOld);
     pnlColors.Location = new Point(14, 207);
     pnlColors.Name     = "pnlColors";
     pnlColors.Size     = new Size(180, 37);
     pnlColors.TabIndex = 3;
     //
     // lblOld
     //
     lblOld.BackColor   = Color.White;
     lblOld.BorderStyle = BorderStyle.FixedSingle;
     lblOld.Location    = new Point(9, 198);
     lblOld.Name        = "lblOld";
     lblOld.Size        = new Size(35, 15);
     lblOld.TabIndex    = 4;
     lblOld.Text        = "Old";
     lblOld.TextAlign   = ContentAlignment.MiddleCenter;
     //
     // lblNew
     //
     lblNew.BackColor   = Color.White;
     lblNew.BorderStyle = BorderStyle.FixedSingle;
     lblNew.Location    = new Point(99, 198);
     lblNew.Name        = "lblNew";
     lblNew.Size        = new Size(35, 15);
     lblNew.TabIndex    = 5;
     lblNew.Text        = "New";
     lblNew.TextAlign   = ContentAlignment.MiddleCenter;
     //
     // chkAlpha
     //
     chkAlpha.Checked    = true;
     chkAlpha.CheckState = CheckState.Checked;
     chkAlpha.Location   = new Point(221, 200);
     chkAlpha.Name       = "chkAlpha";
     chkAlpha.Size       = new Size(90, 18);
     chkAlpha.TabIndex   = 6;
     chkAlpha.Text       = "Show Alpha";
     chkAlpha.UseVisualStyleBackColor = true;
     chkAlpha.CheckedChanged         += new EventHandler(chkAlpha_CheckedChanged);
     //
     // pnlNew
     //
     pnlNew.Dock     = DockStyle.Fill;
     pnlNew.Location = new Point(90, 0);
     pnlNew.Name     = "pnlNew";
     pnlNew.Size     = new Size(90, 37);
     pnlNew.TabIndex = 6;
     pnlNew.Paint   += new PaintEventHandler(pnlNew_Paint);
     //
     // pnlOld
     //
     pnlOld.Dock     = DockStyle.Left;
     pnlOld.Location = new Point(0, 0);
     pnlOld.Name     = "pnlOld";
     pnlOld.Size     = new Size(90, 37);
     pnlOld.TabIndex = 5;
     pnlOld.Paint   += new PaintEventHandler(pnlOld_Paint);
     //
     // goodColorControl1
     //
     goodColorControl1.Color         = Color.FromArgb(0, 0, 0, 0);
     goodColorControl1.Location      = new Point(12, 10);
     goodColorControl1.MinimumSize   = new Size(310, 186);
     goodColorControl1.Name          = "goodColorControl1";
     goodColorControl1.ShowAlpha     = true;
     goodColorControl1.Size          = new Size(314, 186);
     goodColorControl1.TabIndex      = 2;
     goodColorControl1.ColorChanged += new EventHandler(goodColorControl1_ColorChanged);
     //
     // GoodColorControl2
     //
     Controls.Add(chkAlpha);
     Controls.Add(lblNew);
     Controls.Add(lblOld);
     Controls.Add(pnlColors);
     Controls.Add(goodColorControl1);
     Controls.Add(btnCancel);
     Controls.Add(btnOkay);
     Name = "GoodColorControl2";
     Size = new Size(335, 253);
     pnlColors.ResumeLayout(false);
     ResumeLayout(false);
 }