How to validate textbox input based on combobox selection : <p>I have a <code>ComboBox</code> and a <code>TextBox</code>. The ComboBox items are Int,float,char, ect..</p>

<p>I need to validate:</p>

<ul>
<li>TextBox contains only digits if the ComboBox selection is Int </li>
<li>TextBox contains letters if the ComboBox selection is char</li>
<li>And so on...</li>
</ul>

<p>any idea ?</p>
