473,396 Members | 1,707 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,396 software developers and data experts.

Question about the Mask property on the MaskedTextBox

I'm using the MaskedTextBox to make sure the user inserts a valid
international phone number. I want to set the Mask property so that the user
sees +49-__-____-____ in the text box.

I set the Mask property to "+49-00-0000-0000", but because 9 is a Masking
element the masked text box contains +4_-__-____-____

How can I pass a 9 (or 0) into the Mask property so that it is not treated
as Masking elements?

Thank you for your help.
Nov 5 '07 #1
0 1480

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: F. Michael Miller | last post by:
I have a db with Access front end, sql back, linked tables. I need to be able to change input masks at the table level in code. Any ideas? Thanks!
2
by: Alberto | last post by:
Can I set a mask to a TextBox? How? Thank you very much
1
by: Brian Ciarcia | last post by:
Can someone please look at the following code that I have been using for my asp forms and help me convert it so that I can use it on my .net forms?? I have tried using the maskedit control and...
5
by: grs | last post by:
If you do a maskTextBox.String() the mask characters are still in the string. Surely MS does not want you to store the masking characters - where is the method to remove the masking characters. ...
1
by: Matt | last post by:
I recently came across what I believe to be a peculiar bug with Mdi Children, and wanted to see if anyone else had experienced this before sending it in. The issue is as follows: I have a number...
2
by: sklett | last post by:
Hi, I'm trying to define a mask for a MaskedTextBox and can't get it right. For 5 numbers, '00000' seems to be a valid mask and behaves correctly, but I know need a control that will take a...
5
by: path | last post by:
Hello all I'm programming in a Windows form (VB 2005). I use the MaskedTextBox control. I use the slash "/" as separator date. When I retrieve data from a database in another workstation the...
3
by: =?Utf-8?B?TWFyayBDb2xsYXJk?= | last post by:
I need to display a MaskedTextBox that has 2 different prompt characters. Is this possible (maybe using the MaskedTextProvider)? If so, can you please show me an example on how to do it. Many...
1
by: Andrus | last post by:
I need to create WinForms DataGridView column which shows spaces between thousands. I have found that MaskedTextBox Mask property supports this I tried to add column to DataGridView using ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.