DateTimerPicker VBA

1

I'm developing an application in Visual Basic, and would like to know how to load hours saved in the database to the control DateTimePicker , I can normally enter the value in the database.

Format(TimeOfDay.ToString("HH:mm:ss"))

but I can not retrieve the value in the control.

    
asked by anonymous 10.02.2015 / 16:14

1 answer

3

Rolling MSDN Discovered!

 Dim h As New TimeSpan
 h = bs_coleta.Current("coleta_horaColeta")
 DateTimePicker1.text = h.ToString

bs_collection is a BindingSource that temporarily stores the data in the Collection table.

    
12.02.2015 / 16:05