Key event question
-
The scenario can be best described as the following. A form is created with only a label. A keyup event is added to the form so that when a key is pressed the value of that key is added to the label. Now when I add a couple of radio buttons and a standard button to the same form, this procedure does not work. I want the form to handle the key event not some control. Why can I not set the form to have focus when other controls are present? I hope this makes sense! Thanks!
-
The scenario can be best described as the following. A form is created with only a label. A keyup event is added to the form so that when a key is pressed the value of that key is added to the label. Now when I add a couple of radio buttons and a standard button to the same form, this procedure does not work. I want the form to handle the key event not some control. Why can I not set the form to have focus when other controls are present? I hope this makes sense! Thanks!
Set the KeyPreview propery of your form to TRUE.