using arrow key in a richtextbox
-
I'm trying make a simple telnet client to connect to a JTAG tool. I'm displaying the telnet data to a richtextbox. It is coming along but I'm have a problem trying to get the arrows keys to send. Do you know how to treat the arrow keys like any other key and have it call the keypressed event handler? Thank You for any help or suggestions.
-
I'm trying make a simple telnet client to connect to a JTAG tool. I'm displaying the telnet data to a richtextbox. It is coming along but I'm have a problem trying to get the arrows keys to send. Do you know how to treat the arrow keys like any other key and have it call the keypressed event handler? Thank You for any help or suggestions.
Hi, You have to create a new inherited control from RichTextBox and make an override of the "IsInputKey" or "InputKey" method. This method returns a boolean that indicates if the system has to process the key event. Search in MSDN for more info.