I have a form which contains a textbox alongside which there is a counter which tells me how many characters I have typed. This works well when typing from start to finish but if I try to go back and change something by clicking into previous text, I can only enter one character and then the focus flicks to the end of the string. I assume this is because the focus goes from the textbox to the counter and then back and when the focus returns, it simply goes to the end og the text.
How can I keep the focus in my textbox whilst updating the other control? I have tried using DoEvents but it doesn't seem to work for me - though this could very easily be due to me using it all wrong
.
Can anybody please point me in the right direction?