title: SelectAll Textbox Text
body: <p>I am using these following code. I want to when I select all text in the <code>textbox</code> it tells me but I don't know why it's not working. please give me some help. Please give some code so that I can use this when I select all text in the <code>textbox</code> <code>text</code> it tells me</p>
  
  <pre><code>if (textBox1.SelectAll() == true)
          {
              MessageBox.Show("You have selected all text in the textbox");
          }
  </code></pre>
  
  <p>It will tell me: <em>Operator <code>==</code> cannot be applied to operands of type <code>void</code> and <code>bool</code></em></p>