Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi
I have MaskedTextBox whith this mask: .../.../...

How I was sum text in this mask?
:(
Posted
Updated 28-Nov-10 22:45pm
v2
Comments
OriginalGriff 29-Nov-10 3:33am    
Sorry - I realize that English is not your native language, but that does not make sense.
Please, edit your question, and try to give more detail of your problem. You may find using simple words in your native language and translating them via Google may give a better result.
Manfred Rudolf Bihy 29-Nov-10 4:19am    
Considering that the above mask doesn't allow one to input any text(See my post below). I read his question as "How can I input some text into this masked textbox.

1 solution

Hello Raheleh,

since your question is not very clear (as OriginalGriff already commented on) I'll just post what I found out by trying out your mask:

This mask won't allow for any input since the decimal point in a mask is just a placeholder for whatever character the decimal seperator is in your current Culture and the "/" is the placeholder for whatever the date separator is in you current Culture. If you want to escape a mask character from it's special meaning you'll have to put a \ in front of it.

If you're looking to input numbers use something in the likes of:
#0.00\/#0.00\/#0.00

This will allow you to enter up to two digit numbers with two decimal places where numbers from zero to nine won't have to be prefixed with a zero, but both decimal places have to be entered. The numbers will appear to be separated by a forward slash:

http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask(v=VS.80).aspx


Best Regards

Manfred
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900