form_keypress event

Ted Kirkendall
10-05-2000, 02:00 PM
I have a mini-program to test input from a card swipe. I have code written in the form_keypress event that parses the user's ID and Password from the card and sets them as the caption of the form. Here's the problem:
If I place no controls on the form, it works fine. However, if I place a command button or a text box on the form, (with or without code does not matter) the keypress event never runs.
This does me no good as I need to use this in a normal application with buttons, text boxes etc.
Please help.

thanks, ted

BillSoo
10-05-2000, 02:12 PM
Try setting the form keypreview property to true.

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum