all groups > dotnet windows forms > february 2008 >
You're in the

dotnet windows forms

group:

Prompt characters in a MaskedTextBox


Prompt characters in a MaskedTextBox Flyte
2/6/2008 8:00:04 AM
dotnet windows forms:
The MaskedTextBox only allows a single prompt character to be
displayed upon user input. I need the ability to display different
prompt characters for certain character positions. How can I do this?
Also, due to the nature of the text being inputted, I suspect that I
will need to use a regex to validate this properly. So I'm assuming
because of these two limitations, that the MaskedTextBox isn't the way
to go.

Does anyone have any suggestions on how I can go about this? Use a
regular text box and validate against a reg expression? But how do I
Re: Prompt characters in a MaskedTextBox Mr. Arnold
2/9/2008 7:41:56 AM

[quoted text, click to view]

You could like at a RichTextbox control. It has a lot of features that can
be used.
AddThis Social Bookmark Button