PopupDurationEntry(Control,Int32,Int32,Int32,Int32,Boolean) Method
- Last UpdatedNov 06, 2025
- 1 minute read
This overload of the PopupDurationEntry() method opens a duration entry dialog, which allows a duration in hours, minutes, and seconds to be entered. Minutes and seconds are limited to the range 0 - 59. The maximum allowable value for hours (for example, 9999) must be specified. This dialog supports touch screen entry. Note that the parent control should be a TextBox, not a DateTimePicker control. The control's Text property is set to the entered duration in hhh:mm:ss format.
'Declaration
Public Overloads Shared Sub PopupDurationEntry( _
ByVal control As Control, _
ByVal hoursMax As Integer, _
ByVal origHours As Integer, _
ByVal origMinutes As Integer, _
ByVal origSeconds As Integer, _
ByVal showClearButton As Boolean _
)
public static void PopupDurationEntry(
Control control,
int hoursMax,
int origHours,
int origMinutes,
int origSeconds,
bool showClearButton
)
Parameters
- control
- Required. Holds a reference to the read-only TextBox control into which the date and time (possibly blank) is placed.
- hoursMax
- Required. Holds the maximum allowable value for hours.
- origHours
- Required. Holds the current value for the Hours field.
- origMinutes
- Required. Holds the current value for the Minutes field.
- origSeconds
- Required. Holds the current value for the Seconds field.
- showClearButton
- Required. Holds a flag that, if set to true, causes the Clear button (which completely blanks the sourceControl) to be shown.