C# DateTimePicker stuck in loop

前端 未结 5 1979
死守一世寂寞
死守一世寂寞 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:48

    Without seeing any of the code, try these steps:

    1. Comment out the entire event handler to see how fast it runs with nothing attached to it.
    2. Uncomment lines one at a time to see which ones are causing the most problems.
    3. Analyze those method calls.
    4. ...
    5. Profit!

提交回复
热议问题