Is it possible to create say an input mask for a text box?? I have text boxes that users enter dates into..I would like it to be simple so they dont have to enter the /..
Have you looked into the Masked Edit Box. Its a separate component which you can add to the project. Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
private sub text1_lostfocus
if isdate(text1.text) then
text1.text = format(text1.text,"MM/DD/YYYY"
else
msgbox "Invalid date"
text1.setfocus
end if
end sub
Have you looked at DateTimePicker Control?
You can easily control display format and output format and it's very easy for the user Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
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.