|
Hello everyone! I made a small software for timing reminders, and most of them are currently completed. However, there are two problems that have not been solved when optimizing the function. Please help me, thank you!
1. There are four radio buttons in the software interface. My current thought is that I want to use the keyboard to control the selection of radio buttons, such as pressing Ctrl + F1 to automatically select the first button, Ctrl + F2 to select the second, and so on. The bottleneck now is that I ca n’t write keyboard events, because the focus is set on the first button as soon as my program starts, so I did n’t add keyboard events to the form code (I did an experiment, only when there was no Use this method within the control's form so that the program can respond to keyboard events). My intention is that no matter where the current focus is, as long as you press Ctrl + f1, you will respond. How do I compile the code! I really can't figure it out! Don't add all the controls to a keyboard event!
2. When a radio button is selected, my program is set to receive the focus in the number box (NumbericUpDown) corresponding to the selected radio button. Now I also want a function that is not only to receive the focus, but also to automatically select the numbers inside and make them blue so that the user can directly enter the numbers, but I looked at them as if the The function is only available when the object is a text character, but the object in the value box is a number. What should I do? |
|