Hi,
During the ValueChanged event of the UltraDateTimeEditor, I need to test whether the control is actually being changed by a user. For UltraTextEditors, I can test the Focused property.
The Focused property on the UltraDateTimeEditor works fine if the date is manually entered or the up/down arrows are used to change the date. However, if selecting a date from the dropdown, the focused property is always false.
If I used the AfterCloseUp event, is there a way to know if the date has changed from within the AfterCloseUp method.
Thanks.
If I read your question correctly, you're trying to determine if the user actually changed the value instead of something in your code. Why not just check the IsInEditMode property? I'm not sure if this is enough (i.e. what your code is doing and what you're trying to distinguish), but this might be a lot easier than trying to keep several flags and check other properties.
-Matt
You may always want to check ContainsFocus rather than Focused. ContainsFocus will be true if a child of the control has focus as well as the control itself.