Skip to main content
A newer version of this page is available. .

ImageComboBoxEdit.GetPopupEditForm() Method

Returns the control’s popup window.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public PopupImageComboBoxEditListBoxForm GetPopupEditForm()

Returns

Type Description
DevExpress.XtraEditors.Popup.PopupImageComboBoxEditListBoxForm

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

Remarks

At runtime, the control’s popup window can be opened with a click on the control’s dropdown button, or in code using the PopupBaseEdit.ShowPopup method. After the popup window has been opened for the first time, you can use the GetPopupEditForm method to get access to the popup window object. If the popup window has not been opened yet, the GetPopupEditForm returns null (Nothing in VB). Typically, you will be calling the GetPopupEditForm method in the PopupBaseEdit.Popup event handler to get access to the popup window after it has been opened. In the event handler, you can adjust the popup window settings, or handle its events. See the code below.


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