posted 19 years ago
Hiya Kay,
You have a few options:
1. You could use a textbox and set the maxSize of it to 1, so the user can only enter one charachter or digit.
2. You could use a Form containing a TextField, and change it's properties similarly to get one charachter or digit from the user.
But those will both be displayed on the screen. If you want to do it without the user seeing what's going on, you could...
3. Use a Canvas, utilising it's KeyPressed(int keyCode) method that detects when a key has been pressed. Canvas is a bit more difficult to use, but gives you loads of control.
Cheers,
James