R
rodger
Hi all,
how do I set a Textbox to only accept numerical values in vb .net
many thanks
rodger
how do I set a Textbox to only accept numerical values in vb .net
many thanks
rodger
* rodger said:how do I set a Textbox to only accept numerical values in vb .net
* "Mr Utkal Ranjan Pradhan said:On Text Box Key Press event procedure write
if Not Instr(1,"1234567890",chr$(KeyAscii,0) > 0 or KeyAscii = 8) then
KeyAscii=0
Herfried K. Wagner said:That's not VB.NET code.
* rodger said:I am not sure the NumericUpDown list is what I am looking for,
as what I have is a simple Textbox, and I just want to ensure that
only numbers are entered, (later they are picked up by a formula)