Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,
I have one form containing textboxes(City Code,CityName),suppose when i type 'a' in City Code textbox , a pop up window(Datagridview) will come Containing citycode starting with 'a'...problem is,when i type something ,focus is moving to pop up window...i want cursor to focus next to the Current text of TextBox....how can i do that...please help me
Posted
Comments
Sergey Alexandrovich Kryukov 22-Mar-12 2:58am    
What TextBox? What type, exactly?
--SA
DileepkumarReddy 22-Mar-12 3:05am    
i have cityCode column containing data(1,2,3,4..6700)..when i type '1' on first text box ..pop up window will come Containing citycode starting from '1',after this, i want focus to be after current text of first text box(next to '1')....

1 solution

Have you considered using either a DropDownList instead of the TextBox-and-DataGridView combination, or using an autocomplete textbox?
There is an example here: Auto-complete 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