By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,490 Members | 1,791 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,490 IT Pros & Developers. It's quick & easy.

Displaying the Input mask when entering a control

P: n/a
Is there a way to display what the expected format is before entering a
control.

For instance, if I have the input mask of 99/99/0000;0;#, it shows me

##/##/##, but only when I type the first character. Is there a way to
have that display before I type anything?

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
BerkshireGuy wrote:
Is there a way to display what the expected format is before entering a
control.

For instance, if I have the input mask of 99/99/0000;0;#, it shows me

##/##/##, but only when I type the first character. Is there a way to
have that display before I type anything?
I don't see my reply so I'm trying again.

From:

http://groups.google.com/group/micro...b8f5b992c1b5d4

pokdbz wrote: I have a text box with this 000\-00\-0000;;* as the input mask. When the
form is opened nothing is showing in the text box. I would like ***-**-****
to be in the text box. But only when I click on the text box it brings up
***-**-****. I tried to set the focus on the text box and that didn't work
just has a blinking cursor. So is there a way to show ***-**-**** as the input mask in the text box
without clicking on it.


I replied:

:I tried:
:
:Private Sub Form_Load()
:txtField.SetFocus
:txtField.SelStart = 0
:End Sub
:
:
:It seemed to do what you want.
:
:
:James A. Fortune

I didn't try this on any input masks other than the one I replied to.

James A. Fortune

Nov 13 '05 #2

P: n/a
See:

http://groups.google.com/group/micro...b8f5b992c1b5d4

I didn't test out any input masks other than the one I responded to.

James A. Fortune

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.