Articles in this section

What is reason for cannot see the context menu for a dialog that is opened using the WinForms PopUpMenu?

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)
Access denied
Access denied