Dorte
03-31-2003, 05:12 AM
Hi,
I have several textfields in my application and the user is allowed to use the tab key to go from one to another. The problem is that the cursor seems to be left in the textfield when moving to the next - a vertical line is shown in the textfield. I have found some code (shown below) that solves this problem, - it works but it creates a different problem for me: I need to check what has been entered in the textfield (I have a limit of one character in the field) and compare it to a different text. The code below leaves something (I don't know exactly what?) in the textfield and makes my comparison impossible. Besides, this code has the effect of right aligning the text
- mine must be centered.
Does someone know a different solution to this problem?
Thanks,
Dorte
I have several textfields in my application and the user is allowed to use the tab key to go from one to another. The problem is that the cursor seems to be left in the textfield when moving to the next - a vertical line is shown in the textfield. I have found some code (shown below) that solves this problem, - it works but it creates a different problem for me: I need to check what has been entered in the textfield (I have a limit of one character in the field) and compare it to a different text. The code below leaves something (I don't know exactly what?) in the textfield and makes my comparison impossible. Besides, this code has the effect of right aligning the text
- mine must be centered.
Does someone know a different solution to this problem?
Thanks,
Dorte