title: C# convert "label.text" string to integer
body: <p>I am attempting to create a pic-box in a form that when clicked within a particular X/Y range(rectangle), a second form opens. My problem is getting the string values of lblX and lblY to act correctly within my 'If' statement below:</p>
  
  <pre><code>  private void picboxMain_MouseUp(object sender, MouseEventArgs e)
      {
          Convert.ToInt32(lblX.Text);
          Convert.ToInt32(lblY.Text);
  
          if ((lblX &gt;= 155 &amp;&amp; lblX &lt;= 179) &amp;&amp; (lblY &gt;= 145 &amp;&amp; lblY &lt;= 160))
          {
              Form2 Form2 = new Form2();
              Form2.Show();
          }
      }
  </code></pre>
  
  <p>Hopefully it's clear what I'm trying to do. The error is stating "the operator >= cannot be used with label and int". Can anyone see what I'm missing and recommend a solution?</p>
  
  <p>Thanks, A.</p>