Timedialog minute

slowtime

Active Member
Licensed User
Longtime User
Hi,
I can't understand, when i change hours or minutes by + or - timedialogs returns all correct, but if I use keyboard hour is correct else minutes are always the currente time.
Is this a bug or my code is uncorrect ?

Thank you

SelectedDateInTicks = DateTime.Now
Dim Hora As TimeDialog
hora.Is24Hours=(True)
DateTime.DateFormat ="HH:mm:ss"

' set the date shown when the dialog is openend
Hora.TimeTicks = SelectedDateInTicks

ret = Hora.Show("Seleziona un orario", "Ora", "OK", "", "Cancel", Null)
If ret = DialogResponse.CANCEL Then Return
Log(Hora.Hour)
Log(hora.Minute)
DateTime.TimeFormat="HH:mm:ss"
label65.Text=DateTime.time(Hora.TimeTicks)
 
Top