Sub SeekBarTimeToKeepActive_ValueChanged (Value As Int, UserChanged As Boolean)
Dim intHoursToKeepActive As Int
Dim intMinutesToKeepActive As Int
Dim intSecondsToKeepActive As Int
intHoursToKeepActive = DateTime.GetHour(Value) -19
intMinutesToKeepActive = DateTime.GetMinute(Value)
intSecondsToKeepActive = DateTime.GetSecond(Value)
LabelTimeToKeepActive.Text = "Active for this long: " & _
NumberFormat(intHoursToKeepActive, 2, 0) & ":" & _
NumberFormat(intMinutesToKeepActive, 2, 0) & ":" & _
NumberFormat(intSecondsToKeepActive, 2, 0)
End Sub