|
-
Apr 30th, 2006, 03:57 PM
#1
Thread Starter
New Member
control keyChar from InputBox?
Is there a way to control the KeyChar from an InputBox? If so, can you point me in the right direction? I know I can do it with a textbox but wasn't sure if possible with an inputBox. Thanks in advance!
-
Apr 30th, 2006, 05:38 PM
#2
Member
Re: control keyChar from InputBox?
at least not at runtime.. but when the user press's ok you could look at the output and give an error message and promt to input again... i would advise to not use input boxes if you plan to restrict keys... keeps everything simple and nice... (my opinion)...
-
Apr 30th, 2006, 05:42 PM
#3
Frenzied Member
Re: control keyChar from InputBox?
The only possible way I see it is somehow catching keys that get sent to your program while the input box is up, and editing the ascii so that when it's invalid set the ascii to 0 which is nothing. I'm not even sure that would work, but like c0rrupt said I wouldn't use an inputbox.
Age - 15 ::: Level - Advanced
If you find my post useful please ::Rate It::

-
Apr 30th, 2006, 09:17 PM
#4
Re: control keyChar from InputBox?
If you know how to do it with a textbox, then simply make a form that looks like an input box and put a text box on the form. Then use the DialogReturn property of the form to have the form return a value when DialogShow is called.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|