The event handler receives an argument of type DevExpress.XtraEditors.PopupButtonsEventArgs containing data related to this event.
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.
C# |
private void memoExEdit1_PopupButtonsCreating(object sender, DevExpress.XtraEditors.PopupButtonsEventArgs e) {
e.CloseButtonStyle = DevExpress.XtraEditors.Popup.BlobCloseButtonStyle.Caption;
e.ShowButtons = false;
}
|
VB |
Private Sub memoExEdit1_PopupButtonsCreating(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.PopupButtonsEventArgs)
e.CloseButtonStyle = DevExpress.XtraEditors.Popup.BlobCloseButtonStyle.Caption
e.ShowButtons = False
End Sub
|
The RepositoryItemBlobBaseEdit.PopupButtonsCreating event, accessible through the BlobBaseEdit's Properties, is equivalent to the current PopupButtonsCreating event.