How To Restrict
-
How To Restrict textbox control for numaric key in vb .net
-
How To Restrict textbox control for numaric key in vb .net
Try This..
private void textBox1\_KeyPress(object sender, KeyPressEventArgs e) { if (char.IsDigit(e.KeyChar)) e.KeyChar = (char)(0x00); }
Rajesh B --> A Poor Workman Blames His Tools <--
-
How To Restrict textbox control for numaric key in vb .net
Use a
MaskedTextBox
instead or maybe aNumericUpDown
control.If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles] [My Website]
-
How To Restrict textbox control for numaric key in vb .net
Go and visit the VB Forum, strange that there is someone asking the same question over there! You two individuals on the same course / doing the same homework / working on the same thing?
Dave Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com