Articles in this section
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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied