How to capture the spacebar press event using KeyeventHandler?
问题 I have a Form with a rich text box in which i want to do the following: When user presses the spacebar button (Currently i am doing it with keydown event but want to use key press event but it doesn't provide e.keycode), a function should be called in which this logic is to be implemented: last written word is to be fetched and is to be looped through the text of rich text box in order to find its number of occurrences in a rich text box. What i have done so far is: private void textContainer