문제

I have added a DateTimePicker to my windows forms vb app. Its sets the date when left or right navigation button is clicked. I want to the box to be populated only when an date is clicked. Currently when the navigation button is clicked a date gets set in the box.I looked around in stackoverflow and google but not finding a solution to this specific problem

도움이 되었습니까?

해결책

Figured out the my mistake. I needed to handle the 'DateSelected' event and not the 'DateChanged' event. DateChanged events are getting fired as part for the month changes when clicked on the left/right navigator button and also when the year changes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top