PopupDurationEntry(NumericUpDown,MaskedTextBox,MaskedTextBox,Int32,Int32,Int32,Int32) Method
- Last UpdatedNov 06, 2025
- 2 minute read
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.
This overload of the method requires three parent controls: a numeric editor for hours, a text box for minutes, and a text box for seconds. The Value property of the hours control and the Text property of the minutes and seconds controls are set based on the entered duration.
'Declaration
Public Overloads Shared Sub PopupDurationEntry( _
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 static void PopupDurationEntry(
NumericUpDown hoursControl,
MaskedTextBox minutesControl,
MaskedTextBox secondsControl,
int hoursMax,
int origHours,
int origMinutes,
int origSeconds
)
Parameters
- hoursControl
- Required. Holds a reference to the numeric editor control into which the hours portion of the duration is placed.
- minutesControl
- Required. Holds a reference to the text box control into which the minutes portion of the duration is placed.
- secondsControl
- Required. Holds a reference to the text box control into which the seconds portion of the duration 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.