Infolink

 

Search This Blog

Jan 11, 2014

DateTimePicker ValueChanged and CloseUp Event

some time ago i come to know this problem in my form When the month forward or backward arrow is clicked on my DateTimePicker control it repeatedly fires the ValueChanged event.


I have solve this problem using Closeup event of DatepTimePicker

ValueChanged Event

DateTimePicker ValueChanged Event repeats with month/year arrow

VB.NET


Private Sub datepicker_ValueChanged (sender As Object,e As EventArgs) Handels datepicker.ValueChanged MessageBox.Show("You are in the DateTimePicker.ValueChanged event.")

CloseUp Event


when the user changes the value manually, the CloseUp event obviously isn't triggered

VB.NET
Private Sub datepicker_CloseUp(sender As Object,e As EventArgs) Handels datepicker.CloseUp

MessageBox.Show("You are in the DateTimePicker.CloseUp event.")

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...