Don't forget "0", you might need it. ;-)
-----Original Message-----
From: Martin Lacey [mailto:m.lacey@f...]
Sent: Wednesday, March 19, 2003 8:25 AM
To: Application Design for Windows Desktops
Subject: [dotnet_windows_app_design] RE: Visual Basic
There are many ways to do this. For example:
1) One very simple way is to monitor the KeyPress event for the text box
in
question and raise an error if the key pressed is not the ASCII
equivalent of
1 through 9.
2) You could also to this in the Validate event of that text box, where
you
examine each character for validity.
and so on.
--Martin.
-----Original Message-----
From: Ashley [mailto:AshlyBrk2001@a...]
Sent: Wednesday, March 19, 2003 4:21 PM
To: Application Design for Windows Desktops
Subject: [dotnet_windows_app_design] Visual Basic
How do you allow the user to only enter the numbers 1-9 as valid values
in a
text box in Visual Basic
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe
send a blank email to