I just want to get the pressed char in WPF RichtTextbox.
Private Sub rtb_KeyDown(sender As Object, e As System.Windows.Input.KeyEventArgs) Handles rtb.KeyDown
Dim KeyConverter As New Forms.KeysConverter
Dim S As String = KeyConverter.ConvertToString(e.Key)
End Sub
But I only have keyDown event. On Keydown it becomes to be very complicated to catch the right character. Uppercase/Lowercase and special keys like "SHIFT" are fired by keydown, I first need to calculate to the pressed key. Thats complicated. Because WPF is less complicated in most cases, I will ask if you know any way to get the pressed key on keyboard as string or char?
Regards