Has anyone else seen this happen. If you drop a Date Time Picker control on a form along with a text box and then use this code:
Set the Date Time Picker Up Down property to true and the format to dtpTime, run the app and use the up or down to run the Date Time Picker through 12:00:00 AM by just changing the hour. The date and time should be displayed for all values except 12:00:00 AM which just display the date in the textbox. I tried this on a couple of machines with different versions of the Date/Time picker control with the same results. Do I have something buggy or is this an undocumented feature of the control?![[spin] [spin] [spin]](/data/assets/smilies/spin.gif)
If you choose to battle wits with the witless be prepared to lose.
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Code:
Private Sub DTPicker1_Change()
Text1.Text = DTPicker1.Value
End Sub
Set the Date Time Picker Up Down property to true and the format to dtpTime, run the app and use the up or down to run the Date Time Picker through 12:00:00 AM by just changing the hour. The date and time should be displayed for all values except 12:00:00 AM which just display the date in the textbox. I tried this on a couple of machines with different versions of the Date/Time picker control with the same results. Do I have something buggy or is this an undocumented feature of the control?
![[spin] [spin] [spin]](/data/assets/smilies/spin.gif)
If you choose to battle wits with the witless be prepared to lose.
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)