skip to main
|
skip to sidebar
VL's IT blog
Monday, May 17, 2010
Number only text box - C# Express Edition
private void txt_FieldName_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < '0' || e.KeyChar > '9') && e.KeyChar != '\b')
e.KeyChar = '\0';
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2015
(2)
►
April
(1)
►
March
(1)
►
2011
(2)
►
June
(1)
►
March
(1)
▼
2010
(6)
►
September
(1)
►
June
(1)
▼
May
(3)
Not a nullale type - C# 2008
Enums in C#
Number only text box - C# Express Edition
►
April
(1)
►
2009
(3)
►
August
(1)
►
June
(1)
►
January
(1)
►
2008
(3)
►
November
(1)
►
October
(2)
Contributors
Máthé Botond
Unknown
Vera Linn
No comments:
Post a Comment