Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BlobBaseEdit.PopupButtonsCreating Event

Allows you to hide the default OK and Cancel buttons shown in the editor’s popup menus.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public virtual event PopupButtonsEventHandler PopupButtonsCreating

#Event Data

The PopupButtonsCreating event's data class is DevExpress.XtraEditors.PopupButtonsEventArgs.

#Remarks

Handle the PopupButtonsCreating event and specify the ShowButtons event argument to hide both the OK and Cancel buttons. The CloseButtonStyle property in turn, allows you to hide the Cancel button only, or display its icon instead of the default caption.

private void memoExEdit1_PopupButtonsCreating(object sender, DevExpress.XtraEditors.PopupButtonsEventArgs e) {
    e.CloseButtonStyle = DevExpress.XtraEditors.Popup.BlobCloseButtonStyle.Caption;
    e.ShowButtons = false;
}

The RepositoryItemBlobBaseEdit.PopupButtonsCreating event, accessible through the BlobBaseEdit‘s BlobBaseEdit.Properties, is equivalent to the current PopupButtonsCreating event.

See Also