Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
UltraDateTimeEditor fires value change event in loop when showing message box.
posted

Hi,

I am using Infragistics 2009. In one of my form, I have UltraDateTimeEditor control. I would like to display message when user changes date in UltraDateTimeEditor control. I have implemented ValueChanged event of the control.

When I changes from user input using keyboard it works fine,

But when I clicks to navigate to another month (previous/next) then it fires the value chaged event in loop and add/subtract the date value in the value for each iteration. It fires the event till the calender closes as I used CloseUp() method before displaying message in message box.

Kindly help me for the solution.

Thanks & Regards,

Bhavesh Sanghani

 

Parents
No Data
Reply
  • 69832
    Offline posted

    This is a bad idea given that the event fires when a date is selected in the MonthCalendar (which happens on a MouseDown) and showing the MessageBox rips the focus away from the control, which is probably what causes the ensuing mayhem. You are probably a lot better off showing the MessageBox in response to the Validating or Leave event.

Children