Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help to detect user input in the maskedit box

Status
Not open for further replies.

jusan

Programmer
Mar 1, 2002
26
US
I am using VB6. I have textboxes and maskedit boxes in my form. I retrieve some data from database and place those information into the textboxes and maskedit boxes. I would like to detect the user input whenever they start to input, the original info would be cleared and allow user input.
My question is: How can I detect the user start to input?
 
You need to put in your code in the KeyPress event of the Masked Edit box.

It will Look like Private Sub MaskedEdit1(KeyAscii as Integer)
The KeyAscii is the Integer Ascii character code for the key pressed. You could also do this in the KeyDown or KeyUp procedures that will return the Keycode pressed Craig, mailto:sander@cogeco.ca
"Procrastination is the art of keeping up with yesterday."
I hope my post was helpful!!!
 
Thank you for your advice. I will try it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top