G
Guest
I need to display and enforce text being entered into a control and do it
based on a pre-defined set of rules, so I've set it up as a MaskedTextBox.
However, the mask characters defined in the MaskedTextProvider class just
don't cut it for the pre-defined set of rules I have to follow. I want to
create a custom MaskedTextProvider, but so far its proving to be very
stubborn.
I've found the IPv5 sample using the MaskDescriptor, but this technique
won't work for me either. Is there another sample for creating a custom
MaskedTextProvider, or is there a 3rd party tool that someone can reccomend?
I'm getting the feeling that MS never intended the anyone create a custom
MaskedTextProvider (why else would none of the members be defined as
Overridable) and that what I'm seeking just can't be done.
Here are a couple examples. I need a mask token of "CR" to show "CR" if the
numeric value is positive, but show nothing if the value is negative.
Similiarly, I need a mask token of "," to show if the value is large enough
to need the seperator, but be hidden if not. In the current
maskedTextProvider, these are simply literals.
Thanks
Bill
based on a pre-defined set of rules, so I've set it up as a MaskedTextBox.
However, the mask characters defined in the MaskedTextProvider class just
don't cut it for the pre-defined set of rules I have to follow. I want to
create a custom MaskedTextProvider, but so far its proving to be very
stubborn.
I've found the IPv5 sample using the MaskDescriptor, but this technique
won't work for me either. Is there another sample for creating a custom
MaskedTextProvider, or is there a 3rd party tool that someone can reccomend?
I'm getting the feeling that MS never intended the anyone create a custom
MaskedTextProvider (why else would none of the members be defined as
Overridable) and that what I'm seeking just can't be done.
Here are a couple examples. I need a mask token of "CR" to show "CR" if the
numeric value is positive, but show nothing if the value is negative.
Similiarly, I need a mask token of "," to show if the value is large enough
to need the seperator, but be hidden if not. In the current
maskedTextProvider, these are simply literals.
Thanks
Bill