Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Mask, Blink Cursor in TextBox

Status
Not open for further replies.

mibeach7

MIS
Jun 18, 2003
35
US
Hi All,

I have a date text box with an input mask of 99/99/999
But the text box is blank until I click on it to enter a date.

Is there a way to display the date format in the text box before the entry.
Also, how to when the input box is clicked, the cursor will start at the first character of the date, and can I make the cursor blink and show an underline for the character being added.

I remeber doing some of this with VB 6.0 forms.

Thankyou as always!!!!


 
Take a look at the DefaultValue, SelStart and SelLength properties of the TextBox object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
You can add a message in the Status bar message or a message in the Control Tip text. Then when the user mouses over the textbox, a message is displayed in either/both the status bar line or Control Tip.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top