G
Guest
I have a problem with the date time picker validate event wich i believe is
a bug
How to reproduce :
throw on a form a date time picker control and a textbox control
select the validating event of the control and add this code
Private Sub DateTimePicker1_Validating(ByVal sender As System.Object, ByVal
e As System.ComponentModel.CancelEventArgs) Handles DateTimePicker1.Validating
TextBox1.Text = Me.DateTimePicker1.Text
End Sub
start the project
change the standard value of the control but only the day or month ( not the
year ) now move away from the control with a tab
The textbox will show a different value as there is currently showed on your
screen by the date time picker
does someone have a good explanation for this ?
regards
Michel
a bug
How to reproduce :
throw on a form a date time picker control and a textbox control
select the validating event of the control and add this code
Private Sub DateTimePicker1_Validating(ByVal sender As System.Object, ByVal
e As System.ComponentModel.CancelEventArgs) Handles DateTimePicker1.Validating
TextBox1.Text = Me.DateTimePicker1.Text
End Sub
start the project
change the standard value of the control but only the day or month ( not the
year ) now move away from the control with a tab
The textbox will show a different value as there is currently showed on your
screen by the date time picker
does someone have a good explanation for this ?
regards
Michel