In Windows 10 Winforms app, Keys.Right and Key.Left are not handled in Textbox.KeyPress EventHandler

D

DonBaechtel

In Visual Studio 2022 CE, I have a Windows 10 Winforms application, and in a TextBox.KeyPress event handler, I am trying to handle the KeyPress of Keys.Right and/or Keys.Left keyPress. While debugging, I place a breakpoint on the first line of the KeyPress EventHandler. If I press the Left or Right keys, the breakpoint in the KeyPress EventHandler is not triggered, and yet the movement of the insertion pointer within the TextBox is correct (Left or Right) within the text in the TextBox.No error messages are generated in the application.Why are the Keys.Right and Keys.Left key presses not being

Continue reading...
 
Back
Top Bottom