List Info

Thread: Re: Text Box




Re: Text Box
country flaguser name
United States
2007-10-22 23:15:28

If you want to block non-numeric characters from being entered
into a text box, you will need to use the Keypress event and
examine each character that is entered.

sub text1_keypress(asciikey as integer)
  select case asciikey
&nbsp;   case 8, 13, 46, 48 to 57 &nbsp;  'backspace, <Enter&gt;, period, 0 to 9
 &nbsp;  case else
 ; &nbsp; &nbsp; &nbsp; asciikey = 0 &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; 'Some other character
  end select

----- Original Message ----
From: Manual Camaro <macamaro2005yahoo.com>
To: helpwithvbyahoogroups.com
Sent: Monday, October 22, 2007 8:51:16 PM
Subject: [helpwithvb] Text Box

Help me Please. I need the Text box only accepts numbers. Please letme know how to do that.
THANK YOU.
 
Regards
 
Manuel Camaro

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )