title: Textbox maximum/minimum numeric values C#
body: <p>I want to create an <code>if</code> Statement that validates whether an input number in a textbox is between 0 to 100. For example:</p>
  
  <pre><code>NumericUpDown num = new NumericUpDown();
  
  num.Maximum = 100;
  num.Minimum = 0;
  
  if (int.Parse(txtMid.Text) &lt; num.Minimum &amp;&amp; int.Parse(txtMid.Text) &gt; num.Maximum)
  {
      MessageBox.Show("Please input 0 to 100 only.");
  }
  </code></pre>
  
  <p>That's all. Thanks in advance.</p>