* "W. Adam" <wa****@poczta.onet.pl> scripsit:
I have a form which displays info. On top of it there is a text box for
input box which lets you put number from 1 thu 10.
My question is "What do i need to do in order not to let the user go past
it(the input box) if he/she did not enter the correct value.
Thanks in advance
Don't restrict the user from pasting/entering whatever he wants.
Instead, add validation code to the control's 'Validating' event handler
and use an ErrorProvider to make the user aware of malformed input.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>