473,396 Members | 1,764 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.

How do strip the mask character out of the mask Text box text

grs
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.

grs
Nov 29 '05 #1
5 10162
Hi grs,

Could you let me know what control is this? Is this a common TextBox in
windows form or in asp.net? As far as I know, the TextBox control doesn't
have the String() method. Also do you mean that you need to unmask the
character and show the plain text to the user?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 30 '05 #2
grs
windows form masked textbox in visual studio .net 2.0

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Z4*************@TK2MSFTNGXA02.phx.gbl...
Hi grs,

Could you let me know what control is this? Is this a common TextBox in
windows form or in asp.net? As far as I know, the TextBox control doesn't
have the String() method. Also do you mean that you need to unmask the
character and show the plain text to the user?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 30 '05 #3
Hi grs,

Do you mean that you need to exclude the mask characters such as '-' when
you're trying to get the text using maskedTextBox.Text property? If so, you
just need to set the maskedTextBox.textMaskFormat to
MaskFormat.ExcludePromptAndLiterals.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 1 '05 #4
grs
Kevin,

Got it.
mtbZipCode.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;

thanks

grs

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:ry**************@TK2MSFTNGXA02.phx.gbl...
Hi grs,

Do you mean that you need to exclude the mask characters such as '-' when
you're trying to get the text using maskedTextBox.Text property? If so,
you
just need to set the maskedTextBox.textMaskFormat to
MaskFormat.ExcludePromptAndLiterals.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 1 '05 #5
You're welcome.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 2 '05 #6

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

Similar topics

6
by: dude | last post by:
hello how would i make an input mask that only makes the first letter a capitol one? i've been playing around and testing various masks, also tried the wizard, but i've had no luck. could...
13
by: Richard Hollenbeck | last post by:
To prevent future apostrophe bugs and errors, isn't it just simpler to forbid an apostrophe from being entered into a text field? For example, couldn't "Alice's Restaurant" be changed to "Alices...
9
by: Paul | last post by:
hi, is there an input mask i could use on a report to do the following: (1) if i enter "THISISATEST" on my form, i want the text box on my report to display: "T H I S I S A T E S T". (2) if...
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...
2
by: BerkshireGuy | last post by:
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...
4
by: Steve | last post by:
Hi, I'm a complete PHP n00b slowly finding my way around I'm using the following function that I found on php.net to strip out html and return only the text. It works well except for when you...
3
by: ApexData | last post by:
I have an unbound textbox that I want to restrict to 10 characters. I defined the mask as follows CCCCCCCCCC;;" " The problem is that the behavior of the cursor changed beyond my request....
4
by: Smokey Grindle | last post by:
I have a text box on my form which I want masked as a password field, but I can't figure out what the standard mask character is in windows XP and up... anyone know what makes those round circles...
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?
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...
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...

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.