5
Answers

Mask for DateTime field in PropertyGrid

kumar p

kumar p

14y
16.6k
1

All,

How to create a mask to the DateTime field in the propertygrid such a way that, user can enter only in that format. For example, by default "dd/mm/yyyy" should be displayed in the DateTime field. When user key in numbers, the numbers should replace the respective palces. Ofcourse, user can give input from DateTime picker also.

Please, suggest me by giving code snippets or sample source code. Thanks in advance.

Answers (5)