textchange event
Managed C++/CLI
2
Posts
2
Posters
0
Views
1
Watching
-
Hai I am using textchange eventhandler in richtextbox. I just want to know currently what key is pressed by the user. for knowing that is any property is available. can you tell me. Thanks
if you want to get the key that was pressed you should use the KeyPress event. the second parameter (KeyPressEventArgs) you can use to get the keychar that was pressed.
Void richTextBox1\_KeyPress(Object^ sender, KeyPressEventArgs^ e) { char charPressed = (char)e->KeyChar; }
Don't be overcome by evil, but overcome evil with good