C maskedtextbox validating

Finally we have the option of in what format we want to store the output and this format is controlled by Text Mask Format property.

It displays a list of the files and folders currently selected in the tree.

Say for example we you expect a number; you can reject all other key INS.

First, the edit box is set with the Mask property and the property is used to educate the control so that it can know what key press should be processed to take that as input.

There are some sample masks in the radio group which will allow you to set different mask for the masked edit control.

You can actually provide your own format based on the need.

Leave a Reply