0
Answer

Active form problem???

koen.henkens

koen.henkens

20y
1.7k
1
Hi all. I'm still a newbie to c# so please bear with me :) I'm working on a game that will display a form that presents a question. on this form, there is a label that shows the question and 4 buttons (a,b,c,d) that have the answer. The players (3 possible) can buzz-in to answer the question by pressing their assigned buzzer key on the keyboard. This then allows them to answer the question by either pressing the appropriate answer choice on the keyboard (a,b,c,d) or by using the mouse and clicking on the button. If they select the answer using the keyboard and get the question wrong, then the other players are able to buzz-in - which is how it should be. however, if they click the answer button with the mouse and get the question wrong, then no one else is able to buzz-in. I've also noticed that the button the player clicks, has the thicker border or whatever showing that it has focus or is the active control, whatever. I've tried setting the focus back to the form (frmQuestion.ActiveForm.Focus()) in each of the button's click events, and this seemed to work for a little while. Then it stopped working for whatever reason. I've been unable to find any other solution to this. Your help is greatly appreciated. Thanks in advance!