DateTimepicker runaway problem.

Hi,

If you have this in the FORM code

Private Sub DateTimePicker1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DateTimePicker1.TextChanged

MsgBox("Date changed!!")

End Sub

Then RUN it, when you click an arrow to change the MONTH you get one MsgBox after another, after another.....

Is this a bug

Regards,

S_DS




Answer this question

DateTimepicker runaway problem.

  • Satya vani

    Looks like a bug to me.

    Although, if you set a break point on the TextChange event you can see what is happening a little better. Looks to me like when the messagebox appears it causes focus to be off the date selection, but after it appears focus is returned to the DT picker causing it to increment another date.



  • DateTimepicker runaway problem.