Maskedtextbox validatingtype datetime
I have been stuck working with a rather dull database application at work, and what I needed was a means to perform date entry with the following requirements: What I wanted, for this project, and for general use in whatever other context pops up, was a means to allow the typing in of a date into a text box, validation of the result as a valid date, and the ability for the client code to simply retrieve a nullable datetime object.For the purposes of my project, I have achieved these requirements.I began by inheriting from the crusty Masked Text Box control.
Dear John Atten, First I would like to thank you for the Nullable Mask Text Box, I quaite new in C#.Do you have new version of this Mask Text Box, I am using Entity Framework and binding the Date Value.The issue is every time the binding source change position the Mask Text Box made the data stated 'modified'.I try to find where are the code that made the Entity Framework remark the state to 'modified' but no success, could you help me ?
The control has flaws to this point, in terms of general use (limiting the acceptable centuries comes immediately to mind), but it is a starting point.
I set out to replicate the user-facing aspects of the venerable VBA Masking approach found in the MS Access Textbox, and join it with the type system such that a text string date representation could be validated, and then returned to the client code in a useful form, even if null was present.