DurationEntryDlg Constructor(NumericUpDown,MaskedTextBox,MaskedTextBox,Int32,Int32,Int32,Int32)
- Last UpdatedNov 06, 2025
- 1 minute read
The DurationEntryDlg(Control, int, int, int, int, bool) method is the constructor for the DurationEntryDlg class. It supports a numeric editor for hours and masked textboxes for minutes and seconds. The Clear button is not shown for this overload.
'Declaration
Public Function New( _
ByVal hoursControl As NumericUpDown, _
ByVal minutesControl As MaskedTextBox, _
ByVal secondsControl As MaskedTextBox, _
ByVal hoursMax As Integer, _
ByVal origHours As Integer, _
ByVal origMinutes As Integer, _
ByVal origSeconds As Integer _
)
public DurationEntryDlg(
NumericUpDown hoursControl,
MaskedTextBox minutesControl,
MaskedTextBox secondsControl,
int hoursMax,
int origHours,
int origMinutes,
int origSeconds
)
Parameters
- hoursControl
- Required. Holds the parent numeric editor control into which the hours portion of the duration value will be stored.
- minutesControl
- Required. Holds the parent masked textbox control into which the minutes portion of the duration value will be stored.
- secondsControl
- Required. Holds the parent masked textbox control into which the seconds portion of 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.