Keyboard Navigation in Windows Forms Popup (PopupControlContainer)

4 Feb 20251 minute to read

When the popup is visible, the PopupControlContainer will look for Alt, Enter, Tab, Esc, F4, and F2 keys to close the popup. If user want to change this, set IgnoreDialogKey property to true and should make sure to close the popup manually by using HidePopup method.

NOTE :
By default, the IgnoreDialogKey property is set as false.

this.popupControlContainer1.IgnoreDialogKey = true;
Me.popupControlContainer1.IgnoreDialogKey = True