-1

So I have this basic app created where it does the lucky draw. The client now wanted to use presentation clicker device to operate instead of pressing the jewel button or the redo button on the app. I have tested the clicker device and it initiates UP key and DOWN key when pressed.

So now, when I implement the Keydown event in c#, it is not responding to any key.

I have tried this in a separate project and it's working correctly.

I have tried Key Down event and it isn't working.

enter image description here

Enigmativity
  • 113,464
  • 11
  • 89
  • 172
  • Where is your implementation? – Orifjon Aug 31 '23 at 04:41
  • I'm just guessing: your keydown event is bind to your buttons and when presenter is clicked, none of your buttons are selected. You can listen keypresses for the form and handle accordingly. – Orifjon Aug 31 '23 at 04:45
  • 1
    Please don't show images of code. We can't do anything with images. Give us the full code as text. We need a [mcve]. – Enigmativity Aug 31 '23 at 04:55
  • In other words, we need to run your app and see how it works. – Enigmativity Aug 31 '23 at 04:56
  • Without the Repro example we can only guess, you have not wired up the event. We can see you're new here (first question) please take the time to go over the [faq]s and [tour], this website isn't like a typical forum - programmers ask questions in a certain style (ie with code to reproduce) and people answer that question. You're telling us the story but we're only interested in why it doesn't work and what the solutions are. – Jeremy Thompson Aug 31 '23 at 04:59

0 Answers0