Focus previous TextBox
-
Hi, how can I simple focus previous textbox when up arrow key pressed. When down key pressed I use SendKeys.Send("{TAB}"). thanks, Jure
Tavbi wrote:
SendKeys.Send("{TAB}").
Shift + Tab
is the key to go back to the previous focus. I am not sure, but it will be something likeSendKeys.Send("+{TAB}")
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Tavbi wrote:
SendKeys.Send("{TAB}").
Shift + Tab
is the key to go back to the previous focus. I am not sure, but it will be something likeSendKeys.Send("+{TAB}")
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
You are welcome :)
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Hi, how can I simple focus previous textbox when up arrow key pressed. When down key pressed I use SendKeys.Send("{TAB}"). thanks, Jure
Here are some methods that you can use
SelectNextControl
GetNextControl
I don't know if they will scroll the form to the control or not. Use theScrollControlIntoView
method to scroll to the desired control.Eslam Afifi