This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I want to use the MaskedTextBox over a TimeSpan that can represent really long spans where the number of digits depend on how many days it spans. Examples: One day: 1.02:03:04 (one day-digit) Ten days: 10.02:03:04 (two day-digits) 103days: 103.02:03:04 (three day-digits) How can I express the mask? |
|
|
Hello Mattias Unfortunately the MaskedTextBox does not support variable length sections. The best you could do is use the character '9' which represents an optional number. e.g. 9990.90:90:90, but you may be better off creating a custom control for your scenario. Jason Fauchelle |
|