Is there a way to use MaskedTextBox without displaying PromptChar? I would like to specify a mask for checking input, but I do not want any prompt characters to take up space during edit mode.
The reason for this is that when I want to accept free text with a limited set of characters, all characters are optional alphanumeric characters. The problem is that when I select all the text, even the invitation characters are selected.
Setting PromptChar to ("") does not work. Installing it in a zero-width space (\ u200B) seems to work, but strange things happen when the mask reaches a certain length (13 characters seem to be a magic number). Or would it be best to just collapse mine?
source share