PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Re: Any way to tell that a context menu has closed?

Reply

Re: Any way to tell that a context menu has closed?

 
Thread Tools Rate Thread
Old 24-06-2003, 01:38 PM   #1
john
Guest
 
Posts: n/a
Default Re: Any way to tell that a context menu has closed?


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
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off