PopupDurationEntry 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.
| Overload | Description |
|---|---|
| PopupDurationEntry(Control,Int32,Int32,Int32,Int32,Boolean) | 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. |
| PopupDurationEntry(NumericUpDown,MaskedTextBox,MaskedTextBox,Int32,Int32,Int32,Int32) | 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. |