Is there any way to find out how many digits I have typed in a textbox? (before update)
I'm working on a search form.
I start inputting numbers in a text box and I'd like to move the focus (cursor) to another textbox as soon as the first textbox is filled with 5 digits.
I've tried On_KeyDown, On_KeyPress, On_Change events of the text box but I couldn't make it work mostly because I'm still in the textbox and it's not updated yet.
I also thought of updating the textbox with each key press and then move the cursor to the end of the typed number, but I think it will cause screen flickering.
Any idea is much appreciated.
I'm working on a search form.
I start inputting numbers in a text box and I'd like to move the focus (cursor) to another textbox as soon as the first textbox is filled with 5 digits.
I've tried On_KeyDown, On_KeyPress, On_Change events of the text box but I couldn't make it work mostly because I'm still in the textbox and it's not updated yet.
I also thought of updating the textbox with each key press and then move the cursor to the end of the typed number, but I think it will cause screen flickering.
Any idea is much appreciated.
Last edited: