Hi guys,
I'm having a trouble with a form where I am using a KeyDown and KeyUp event to enter a pin and log in the database, and it works nicely when all the elements on it are labels, but it appears that when adding a button on it it stops working. I think this is because the button gets the focus when loading the form and prevents the events to work.
Is there any solution to make this whole set work when having some buttons in the form?
Thanks in advance for your time and help.
I'm having a trouble with a form where I am using a KeyDown and KeyUp event to enter a pin and log in the database, and it works nicely when all the elements on it are labels, but it appears that when adding a button on it it stops working. I think this is because the button gets the focus when loading the form and prevents the events to work.
Is there any solution to make this whole set work when having some buttons in the form?
Thanks in advance for your time and help.