Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I get focus from last control (textbox) to third control (text or combobox) or any other control for correction at the time of billing without using mouse click in C#? I meant" backword "motion of culsor . just like tab as forword motion
Posted
Updated 9-Dec-10 21:46pm
v4
Comments
Toniyo Jackson 10-Dec-10 2:18am    
Winforms or web?
Dalek Dave 10-Dec-10 3:33am    
Minor Edit for Grammar.
Toli Cuturicu 10-Dec-10 9:43am    
Shift+Tab

Try to use JavaScript function..I am assuming u want to go directly to 3rd control on tab key press..
Try like this
1) Write JavaScript function which checks the key press and catches the tab key.
2) If the key press is tab then set the focus to the control u want.

Just an idea I am giving hope it helps u.

cheers,
vinay
 
Share this answer
 
Comments
Sandeep Mewara 10-Dec-10 2:16am    
I think he is asking for winforms.
Sandeep Mewara 10-Dec-10 2:16am    
Though, javascript wont fit in... Tabbing should fit in.
sevenbell 10-Dec-10 2:26am    
pardon me I am working in windows application .
Dalek Dave 10-Dec-10 3:33am    
Good call.
try this idea

simply call the (third)comboBox.SetFocus() in (last)TextBox_Leave(...) event handler
 
Share this answer
 
You will explicitly have to call SetFocus() on the control.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900