Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 2.41 KB

File metadata and controls

45 lines (32 loc) · 2.41 KB

WinForms Lookup - Hide the Close button from the dropdown

This example creates a custom lookup control that does not display the Close button in the dropdown (the fCloseButtonStyle field is set to BlobCloseButtonStyle.None). The example overrides the LookUpEdit.CreatePopupForm method to return a custom edit form:

public class UserLookUpEdit : LookUpEdit {
  // ...
  protected override DevExpress.XtraEditors.Popup.PopupBaseForm CreatePopupForm() {
      return new UserPopupLookUpEditForm(this);
  }
}

public class UserPopupLookUpEditForm : PopupLookUpEditForm {

    public UserPopupLookUpEditForm(LookUpEdit owner)
        : base(owner) {
        fCloseButtonStyle = BlobCloseButtonStyle.None;
    }
}

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)