title: How to use ColorDialog to place text in Textbox in C# / Excel Interop
body: <p>How do you use the colorDialog to place the text version of a color into a textbox?  I have a textbox and I fir the colorDialog upon clicking a button next to it.  The tsring of the color goes into the text box, but the final result is of the form 'Color [Green]'  and not simply 'Green'.  Is there a better way to do this.  My current code is as follows:</p>
  
  <pre><code>public partial class ColorTie : Form
  {
      public ColorTie()
      {
          InitializeComponent();
      }
  
      private void ColorTie_Load(object sender, EventArgs e)
      {
  
      }
  
      private void textBox1_TextChanged(object sender, EventArgs e)
      {
  
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          colorDialog1.ShowDialog();
  
          if (colorDialog1.ShowDialog() == DialogResult.OK)
          {
              textBox1.Text = colorDialog1.Color.ToString();
          }
      }
  
  }
  </code></pre>