C# DateTimePicker stuck in loop

前端 未结 5 1987
死守一世寂寞
死守一世寂寞 2021-01-21 22:06

I have a datetimepicker in C#. When I click on it, it expands to show a monthly calendar, when I click the left arrow to go back a month, it changes the value and calls my even

5条回答
  •  悲&欢浪女
    2021-01-21 22:55

    You could try a couple of things. Get rid of the DoEvents inside of the ChangedEvent. Call the doevents inside of a seperate function after maybe a period of time (thread.sleep() ?).

    I know doevents does cause issues but I rarely use it.

提交回复
热议问题