I have a maskedtextbox with the following mask : 999999. I would like to add something like a placeholder in HTML to help the end user to know the mask of my maskedtextbox.
I think that i can create a specific mask when the form load and set the text property to "YYYYMM" (the placeholder that i need) and when the user enter in the control, reset the text and change the mask to 999999. However, i think there are better solutions.
I find some people talking about watermark control, but i would like to find something easier to use.
Any help will be appreciate. Thanks
As suggested by tinstaafl in comments, i used a DateTimePicker instead of a MaskedTextBox.
I changed its properties :
This way, i have something similar to a textBox and i can select only the year or only the month and increase it with the up and down buttons.