Hi Ling
Thank you for your response. As you know, in general, there are two ways of giving input values to a property item which is of type DateTime.
1) UsingDateTimePicker
2) Entering numbers using keyboard
Here, I am talking about using keyboard. By default, format (e.g., mm/dd/yyyy ) should be displayed in the property item field. When user wants to key in values using keyboard in the DateTime property field in the propertygrid, each key in number should replace the respective letter of the mask at current selection. For example, if user enters 6 at 2nd position of the month part, m6/dd/yyyyy should be displayed in the field and separators and other letters should remain same in position even user deletes them.
Please, suggest me in the same.
Another question:
For suppose, there are 4 propertygrids and3 list boxes have been placed on a main Form in my solution. How can I get information of the currently active/selected controlwhen the project isrunning and how canI access that control in the code? Please, advise me.
Regards,
Kumar