Code:private void textBox1_KeyPress( object sender, KeyPressEventArgs e ) { e.Handled = !( new Regex( "[0-9]+" ).IsMatch( e.KeyChar.ToString( ) ) ); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 16
Thread: Input Type CheckThreaded View
|
Click Here to Expand Forum to Full Width |