It's funny how I can use simple code in Delphi's Textbox to handle keypress, How about VB.NET (I am new with VB)
In Delphi:
Code from Keypress event:
if Not Key IN (['0'..'9',#8]) then
Key := #0;
Basically, this will only allow numbers to be entered in the text box (and backspace)
In Delphi:
Code from Keypress event:
if Not Key IN (['0'..'9',#8]) then
Key := #0;
Basically, this will only allow numbers to be entered in the text box (and backspace)