473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Displaying the Input mask when entering a control

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
2 1988
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David W. Fenton | last post by:
I'm working on a subform where users put in 24-hour time. On their paper forms, they've been accustomed to referring to midnight as 24:00 (instead of as 0:00, which kind of makes sense from a human...
1
by: Miranda Evans | last post by:
In my application, a text box control resides in a form. The text box control is unbound, but--assuming all edits are passed when the user click a command button on the form--the contents of the...
3
by: AA Arens | last post by:
When I want the first character of a field to be Uppercased, I need to make an input mask, like >L< followed by ??????? for example. But this mask creates ____ in an unfilled field, which I don't...
9
by: msnews.microsoft.com | last post by:
Hello. How can I set input mask for TextBox? Or can I use for mask input some other control?
2
by: jmarr02s | last post by:
I need my Date field to possess the following format: Jan-05-1999 How do I change the Date Format/Input Mask to accomplish this? Thanks! John
5
by: mtgrizzly52 | last post by:
First thing, because of you all and this web site, I am building a first class time saving database for my fellow workers to use. My really dumb questions is this. I have a control in a subform...
2
by: =?Utf-8?B?RG9u?= | last post by:
Hello, I have web form that references a field for a phone number. The number is stored in the table as a string in this format "(111) 222-3333". When I done this in the past for window forms I...
3
by: manxie | last post by:
Dear All Readers, I'm supposed to create a program with a switch and using voids to execute number of codes, that includes finding sum, average, maximum, and minimum, please read my code:...
1
by: Doug | last post by:
Hi, I created a short date field. The format is dd/mm/yyyy when displayed. The input mask is set to 99/99/00;0 (default, I didn't type anything). If I edit an existing date, say change...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.