| | |
Maskedtextbox C#
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2009
Posts: 3
Reputation:
Solved Threads: 0
i need help with a maskedtextbox in a C# applikation. I want want it to display the date in the following format "00.00.0000" but it refuses to show the "." instead it shows "00,00,0000". I have tried several different solution but none of them works.
The mask is correct but the .Text attribute refuses to show "." but converts them to "," instead
Does anyone has any ideas about this or has anyone come across this before?
I'm looking forward for your help.
The mask is correct but the .Text attribute refuses to show "." but converts them to "," instead
Does anyone has any ideas about this or has anyone come across this before?
I'm looking forward for your help.
0
#6 Oct 14th, 2009
Changing a char in a string is very easy!
Look :
DateStr now contains : "12.34.5467"
But again: you should consider the DateTimePicker control, to input a date in your application.
Look :
c# Syntax (Toggle Plain Text)
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string InputStr = "12,34,5678"; string DateStr = InputStr.Replace(',', '.'); } } }
DateStr now contains : "12.34.5467"
But again: you should consider the DateTimePicker control, to input a date in your application.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
![]() |
Similar Threads
- C++ maskedtextbox (IP address) (C++)
- Masked Text Box (C#)
- Reading Data from Dynamic Tab Control (VB.NET)
- MaskedColumnType (C#)
- Formatting TextBox (C#)
- How to Create a time textbox (C#)
- Key Press Event (C#)
- Usercontrol please help!!!!!!!!!!!!!!! (VB.NET)
- How to link Buttons in C++.NET? (C++)
Other Threads in the C# Forum
- Previous Thread: help me to show a table from database to my form
- Next Thread: InfoPath Question
| Thread Tools | Search this Thread |
ada animation array assembly assign bluray c# c++ calculator challenge char character code convert count css data date datetime digital drawing drive dual dvd dynamic encryption exam exe file filename firefox format fstream ftp gdi+ getline hash hd html ide ifstream int introduction introductory java layer line list listbox memory method namevaluepairs parse parsing partition path perl professor proficiency program py py2exe python recursion regex retrieve reverse rotation search single slicenotation sony source string studio test time timer tutorial unicode university unreadable user validation video visual war wxpython year







