can't determine '.' keychar for a textbox KeyPress event
<p>I use below code to not allowing any character except numbers in a textbox ... but it allows '.' character! I don't want it to allow dot. I appriciate your helps.</p>

<pre><code>    private void txtJustNumber_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (!char.IsDigit((char)(e.KeyChar)) &amp;&amp;
            e.KeyChar != ((char)(Keys.Enter)) &amp;&amp;
            e.KeyChar != (char)(Keys.Delete) &amp;&amp;
            e.KeyChar != (char)(Keys.Back)&amp;&amp;
            e.KeyChar !=(char)(Keys.OemPeriod))
        {
            e.Handled = true;
        }
    }
</code></pre>
