How to avoid error if textbox is empty?
<p>I'm looking for a solution to avoid an error if one or both of the textboxes are empty? I have tested to check if the value of height and width is null, but that I can only do after the code, and then it's to late!? Help is preciated! Thanks!</p>

<pre><code>// Get values from text boxes
int height = Convert.ToInt32(txtInputA.Text);
int width = Convert.ToInt32(txtInputB.Text);
</code></pre>
