471,593 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,593 software developers and data experts.

validating text in box

Help i've just done a basic calculator with three textboxes a label & a button, basically when you add a number in textbox1 to the one in textbox2 it appears in textbox3 .........now the question asks to check if the user has typed in something appropriate . It says double click on txtnum1 use right hand list box to find Validating( ) event, then modify event stub so it looks like this
If Not IsNumeric(txtNum1.text) Then e.Cancel =True End if

Please where does the last data go to ? Where is the validating event. I've tried to put it in the text box but it doesnt work. Where is Validating on the right hand side. I can't see it anywhere..........All help gratefully recieved.

Help one of your people tried to help, they suggested pulling down the validating box & entering date. I pulled down in the second row as pointed out, but it says something about a boolean do you have to eraze this.?..what about the end sub do you have to change this for END IF or do you keep it.......
When I tried to compile it i got a run time error...............
Jan 18 '07 #1
1 1222
8,435 Expert 8TB
Look up the online help from VB, and study how to insert code in an event procedure for a control. In this case, the Validating event.
Jan 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

30 posts views Thread by Toni Mcintyre | last post: by
reply views Thread by Gary Shell | last post: by
5 posts views Thread by Ian Jewitt | last post: by
5 posts views Thread by ameen.abdullah | last post: by
1 post views Thread by =?Utf-8?B?bGpsZXZlbmQy?= | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.