How do I get the cursor to go to the first position in my masked edit box no matter where I click in the edit box? I tried this in GotFocus: mskEdBox.selstart=0 (zero) and it doesn't seem to work. Thanks...
It should work the first time, when the masked edit box originally gets focus. It's not going to work if focus is already on the masked edit box and you click again.
Darn. You're right. That control is bad. I tried placing an invisible label over the top to try to utilize the Click event from a label but that didn't work either. Perhaps you need to write one. Using a TextBox and watching the Click event and the KeyPress even will allow you to control the user input and keep it in the correct place.
Unfortunately, I agree with jitter. I've also got VB6 and the version on my OCX is SP3. That worked fine for me. When you click on the object the first time, it scrolls to the front. So unfortunately, I've got no other ideas. Sorry.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.