I will take a look at the KeyUp event, but I think it operates the same way.
The problem with checking the KeyState on numlock is that I also want to use the arrow keys for some in the form. So if the numlock is off, I still need to know whether the user pressed the arrow key, or the numpad arrow key.
For now, I've decided to use a different control method, using the WASD keys and the arrow keys.
User Profile
Collapse
-
-
Code:public int[] indexesOf(List list, String string) { List<int> result = new List<int>(); for (int i = 0; i < list.Count; i++) { if (list[i] == string) { result.Add(i); } } return result.ToArray(); }Leave a comment:
-
adwenger0066 replied to how to access a property of one class ,and to show it in a list made at another form?in C SharpFor the customer class, override the ToString() method with the information you want available in the List and then add the instance of Customer to the list.
If you need the ability to alter the information, you may also need to create a method to Parse a string inside the customer class which your master form would have to call to update the data.Leave a comment:
-
How to differentiate between specific keys?
I'm trying to find out methods on how to figure out which key was pressed. For Windows forms, the KeyDown event is what I am looking at, but there is a problem.
When a user presses the number 4 on the number pad, it can return either NumPad4 or Left. Normally, I could just listen for either, but I also want the Left Arrow to function differently.
Is there a way I can just tell which key was pressed without having to...
No activity results to display
Show More
Leave a comment: