Advertisement

05.13.2008 at 04:02PM PDT, ID: 23399744
[x]
Attachment Details

Need to launch a context menu manually

Asked by newbieweb in Microsoft Visual C#.Net, C# Programming Language

I have a problem when I right click an item in my listbox, before selecting it.  So I intend to intercept the mouseclick event and select the index based on the location of a right click event.  

Two problems:
1) It seems only the left bmouse click works.  I set the ContextMenuStrip to "none" and intercept the mouseclick event.  But the right click does not seem to be occuring.  Is there a preference I must set?
2) how do I then manually start the context menu?  If I use Show(), it opens the menu in the upper left position of the screen.  How do I set the location before I open it?

Thanks,
newbiewebStart Free Trial
[+][-]05.13.2008 at 04:11PM PDT, ID: 21560065

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 04:31PM PDT, ID: 21560168

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, C# Programming Language
Sign Up Now!
Solution Provided By: jaime_olivares
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.13.2008 at 05:25PM PDT, ID: 21560361

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 05:39PM PDT, ID: 21560418

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 05:46PM PDT, ID: 21560444

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:17PM PDT, ID: 21560540

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:53PM PDT, ID: 21560656

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628