i want to make a form in Vb Script..<br>i want to make a text field where only integer can write,if any body try to wite the integer it gives window..<br>plz help me out..<br>i can't do this..<br>tell me bout validification also..
Hi Sabrina,<br><br>Could you give your questions a more descriptive title please? <grin><br><br>Anyway.<br><br>You need to look at the KeyPress event which is defined for a text box as:<br><br>"Private Sub Text1_KeyPress(KeyAscii As Integer)"<br><br>This event is fired each time the user presses a key when that control has focus - as you would expect from the name.<br><br>The parameter, KeyAscii, holds the ascii number of the key that's been pressed - if you don't like what has been pressed you can set it to zero which rejects the keystroke.<br><br>Mike<br> <p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.