title: How to use an "&" character in a C# button text property to display properly
body: <p>My C# code is:</p>
  
  <pre><code>        Button button;
          button = new Button();
  
          button.Text = "B&amp;C";
  
          this.Controls.Add(button);
  </code></pre>
  
  <p>But when I run this code the button on my form displays BC (and the C is usually underlined). </p>
  
  <p>I know that I can set it to B&amp;&amp;C to get my button text to come out as B&amp;C but the users of my app will not know to type B&amp;&amp;C when they configure the text on their buttons. </p>
  
  <p>They will just type B&amp;C, or C&amp;B, etc, which will come out as BC and CB.</p>
  
  <p>How can I work around this?</p>
  
  <p>Thanks.</p>