Category / Section
What is reason for cannot see the context menu for a dialog that is opened using the WinForms PopUpMenu?
1 min read
Context menu
The PopupMenu.Show method will by default return after the context menu is closed. Specifying SynchronousPopup property of the PopUpMenu to False will make it return immediately and now you can see the context menu for the dialog that was opened using PopupMenu.
C#
//Set the SynchronousPopup property to false this.popupMenu1.SynchronousPopup =false;
VB
'Set the SynchronousPopup property to false Me.popupMenu1.SynchronousPopup = False