DurationEntryDlg Constructor(Control,Int32,Int32,Int32,Int32,Boolean)
- Last UpdatedNov 06, 2025
- 1 minute read
The DurationEntryDlg(Control, int, int, int, int, bool) method is the constructor for the DurationEntryDlg class.
'Declaration
Public Function New( _
ByVal sourceControl As Control, _
ByVal hoursMax As Integer, _
ByVal origHours As Integer, _
ByVal origMinutes As Integer, _
ByVal origSeconds As Integer, _
ByVal showClearButton As Boolean _
)
public DurationEntryDlg(
Control sourceControl,
int hoursMax,
int origHours,
int origMinutes,
int origSeconds,
bool showClearButton
)
Parameters
- sourceControl
- Required. Holds the parent control into which the duration value will be stored.
- hoursMax
- Required. Holds the maximum allowable value for the Hours field.
- origHours
- Required. Holds the value of the Hours field from the parent control.
- origMinutes
- Required. Holds the value of the Minutes field from the parent control.
- origSeconds
- Required. Holds the value of the Seconds field from the parent control.
- showClearButton
- Required. Holds a flag, if set to true, specifies that the Clear button (which completely blanks the sourceControl) is displayed.