title: Set numericUpDown to 0 if box is null
body: <p>First off I am working in VB.NET. I have a numeric up down control and any time the user uses the keyboard and clears out the number that is in the box I want it to set the value to 0.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>   If nudIntervalMonths.Value = vbNull Then
          nudIntervalMonths.Value = 0
     End If
  </code></pre>
  
  <p>But even when there is nothing in the box it still does not trigger that if statement. Where am I going wrong here. This seems like such a simple thing but I can't figure out how to get it to do this. </p>
  
  <p>Any help would be greatly appreciated. </p>