title: How do I highlight Text in a Textbox in a C# Winforms program?
body: <p>I have a C# Winforms program with multiple textboxes. I used the properties for each box to place text in them, explaining to the user what value goes in them. I want the text to highlight whenever a user selects that box. By either tabbing or mouse click. I won't have to do this if there's a way to display what value goes in the textbox somewhere outside of it.</p>
  
  <p>I tried the Textbox.select method but it had no effect. The same with <a href="https://stackoverflow.com/questions/2151410/c-auto-highlight-text-in-a-textbox-control/2151429#2151429">this</a>.</p>
  
  <p>Here's a <a href="http://img442.imageshack.us/img442/7867/calculatorpreview.png" rel="nofollow noreferrer">Screenshot</a> of my program.</p>
  
  <p>My Code:</p>
  
  <pre><code>    private void grapplingText1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
      {
          grapplingText1.SelectionStart = 0;
          grapplingText1.SelectionLength = grapplingText1.Text.Length;
  </code></pre>
  
  <p>Will this do, or is more required?</p>