windowsforms-devexpress-dot-xtraeditors-dot-checkedcomboboxedit-7e76e7f7.md
Returns the control’s popup window.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public CheckedPopupContainerForm GetPopupEditForm()
Public Function GetPopupEditForm As CheckedPopupContainerForm
| Type | Description |
|---|---|
| DevExpress.XtraEditors.Popup.CheckedPopupContainerForm |
A DevExpress.XtraEditors.Popup.CheckedPopupContainerForm object that represents the control’s popup window. null ( Nothing in VB) if the popup window has not been opened yet.
|
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 checkedComboBoxEdit1_Popup(object sender, EventArgs e) {
DevExpress.XtraEditors.CheckedComboBoxEdit edit = sender as DevExpress.XtraEditors.CheckedComboBoxEdit;
if (edit != null){
DevExpress.XtraEditors.Popup.CheckedPopupContainerForm popupForm = edit.GetPopupEditForm();
// ...
}
}
Private Sub CheckedComboBoxEdit1_Popup(sender As Object, e As EventArgs) Handles CheckedComboBoxEdit1.Popup
Dim edit As DevExpress.XtraEditors.CheckedComboBoxEdit = TryCast(sender, DevExpress.XtraEditors.CheckedComboBoxEdit)
If edit IsNot Nothing Then
Dim popupForm As DevExpress.XtraEditors.Popup.CheckedPopupContainerForm = edit.GetPopupEditForm()
' ...
End If
End Sub
See Also