Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 21st, 2005, 08:12 AM
Registered User
 
Join Date: Mar 2005
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default equivalent of input mask in MSAccess


I have a textbox whose text should be of the format "W00000-0000"
i.e if the user enters 123456789 it should automatically show as W12345-6789. How do i achieve this in VB.NET? I tried to use the masked edit control but somehow its not working. Is there any equivalent for validator of ASP.NET? Or can i achieve this using code?
Reply With Quote
  #2 (permalink)  
Old March 22nd, 2005, 12:05 AM
Registered User
 
Join Date: Mar 2005
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry guys....I got the answer myself....Use a mask edit control and set the "mask" property. Use the "ctltext" property to get the text written in it.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input Mask J.K.W.Y. Access 1 April 3rd, 2006 06:36 AM
Help on date field mask Dave Brown Beginning PHP 1 December 16th, 2004 10:10 PM
Add Mask To Input Element ritag HTML Code Clinic 4 July 20th, 2004 03:33 PM
Input Mask MHarrison Excel VBA 0 December 2nd, 2003 12:11 PM
Creating an Input Mask in a text box in VB.NET ysu_computer_lab VS.NET 2002/2003 1 November 5th, 2003 02:40 PM



All times are GMT -4. The time now is 05:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.