Skip to main content

TimeSpanEdit.GetPopupEditForm() Method

Returns the control’s popup window.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v25.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public TimeSpanEditDropDownForm GetPopupEditForm()

Returns

Type Description
DevExpress.XtraEditors.Popup.TimeSpanEditDropDownForm

A DevExpress.XtraEditors.Popup.TimeSpanEditDropDownForm object that represents the control’s popup window. null (Nothing in VB) if the popup window has not been opened yet.

Remarks

To open the drop-down window, do one of the following:

  • Click the drop-down button.
  • Use the ShowPopup() method.

Use the GetPopupEditForm method in the Popup event handler to access the drop-down window and customize its settings, or handle dropdown-specific events.

private void timeSpanEdit1_Popup(object sender, EventArgs e) {
    DevExpress.XtraEditors.TimeSpanEdit edit = sender as DevExpress.XtraEditors.TimeSpanEdit;
    if (edit != null){
        DevExpress.XtraEditors.Popup.TimeSpanEditDropDownForm popupForm = edit.GetPopupEditForm();
        // ... 
    }
}
See Also