title: If (textBox1.Text == ("admin")) + (textBox2.Text == ("admin)) in C#
body: <p>I want to use one command which will contain two "textboxes.Text" in one "If". I mean when I did this command :</p>
  
  <p><code>If (textBox1.Text == ("admin")) + (textBox2.Text == ("admin))</code> or this  <code>If (textBox1.Text == ("admin) , textBox2.Text == admin))</code>  it isn't right.</p>
  
  <p>The main code is:</p>
  
  <pre><code>  private void Label_Click(object sender, EventArgs e)
       {
           if (textBox2.Text == ("admin")) + (textBox1.Text == ("admin"))
           {
               Label.Text = "right";
           }
           else
           {
               Label.Text = "wrong";
               errorProvider1.SetError(errorprovider, "Wrong Username or Password");
           }
  </code></pre>
  
  <p>Namely the thing I wanted to do is if one of two textboxes is wrong the label will show that the password or the username is wrong ... any ideas ?</p>