When I set focus to it, its all highlighted in black, how can I get the cursor at the front and no total highlighting. I tried selstart but that does not seem to want to do it. Any ideas, thanks
Thanks, however as I said, selstart does not do what I want. The whole field goes black with the cursor at the front (left). I don't want the whole textbox highlighted or whatever its called when it's blacked in.
I have bodged it. I set focus to the textbox, and make its value = "", the inputmask is not there to see, the cursor blinks in the control, but as soon as a first digit is entered the mask appears. Probably the best I will get?
Thanks Zameer, but it still returns to the textbox fully enclosed. Thanks for trying, but I will just use the method of making the textbox = "" and have the cusor blink in the middle with no mask showing until the first digit gets entered. I also tried reversing your code to see if it would work. Regards.
Played with it again, and no, still does not do it. Been into options to check focus on partial highlighting. I then tried to do another part of the program, where I looked for the Len of the text0, it always gave 11 being its mask of 00:00:00:00. Never mind I am working around it and will leave it as is as it seems to be okay operationally. Thanks again
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.