PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: Any way to tell that a context menu has closed?
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: Any way to tell that a context menu has closed?
![]() |
Re: Any way to tell that a context menu has closed? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I figured out that if the context menu was shown through the normal
means (i.e. right clicking on the form somewhere with the mouse), there is a form event raised (MenuComplete) when the context menu closes. But no event is raised if the context menu is shown directly with a call to ContextMenu1.Show(). The problem is that I want to show the context menu in response to a different situation. So then I tried to force (or simulate) a right-click so that the context menu would be shown. But I can't figure out how to force a right-click. I tried calling OnMouseDown and OnMouseUp, passing a MouseEvenArgs object with the right button pressed, but this doesn't work. Any ideas how to do this? thanks |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

