Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 10 textboxes in my form, some of them may have code on their text changed event.
so the problem is that when i press Tab the pointer moves properly, when focus comes to a textbox on which i have written code on textchanged event of textbox then that time textbox lost its Focus.

How to solve this problem.
Posted
Comments
CHill60 10-May-13 8:22am    
Use the Improve question link to post the code that is in the textchanged event - that is where the problem is likely to be from your description

Assign tabindex to all textbox from 0-9 mean sequence wise.
 
Share this answer
 
If your id of textbox control is TextBox1, then use
C#
TextBox1.Focus();
,on textchanged event.
 
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