Code:private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '.') { if (textBox1.Text.Contains(".")) { e.Handled = true; } } }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Threaded View
|
Click Here to Expand Forum to Full Width |