We have a Visual Studio 2010, C#, Windows application.
We have a custom form in the C# project which has a datetime control.
We are capturing the Validating event for this control.
The event appears to get fired correctly when the user attempts to leave the control.
If the user uses the mouse to select a new date, when inside the validation routine, the Value property is set to the newly selected value.
However, if the user uses the keyboard to enter a new date, when inside the validation routine, the Value property is still set to the previous value.
How do I get the Value property to have the correct value after the user changes the value with the keyboard? Or, what is the correct way to get the new value when inside the Validating event for the datetime control?