In My C# Windows Form Application I have many TextBox Controls in a Form in which user enter data to be saved in a database.I want user to be able to change focus to each of these TextBoxes through Up and Down arrows.I could do that for the down arrow so when user press down arrow the focus is set to the textbox with higher tabindex through SendKey(“Tab”). BUT i couldn’t do that for the UP arrow so when user press up arrow focus is set to the textbox with lower tabindex , Any help please ??
Share
Instead of using SendKey() you can use
Control.SelectNextControl(), and useforward=falseto go backwards.