PARTHIBAN
Your IT Partner
Monday, 4 August 2014
Only number in C#
private void OnlyNumber(object sender, KeyPressEventArgs e)
{
if (!(Char.IsNumber(e.KeyChar)) && (e.KeyChar != 8))
{
e.Handled = true;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment