CONTEXT MENU FUNCTIONALITY

Hey guys!!!

I have a context menu that I display from the results of a message box.  The choices are, eScript, Fax, and Fill for the names of items.  The display text is Send eScript, Send Fax, and Fill Rx.

How do I make something happen when I click one of these?

Any help would be greatly appreciated.

Thanks,
Jerry
JDL129Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
Is the menu in the control tray of a form (under the form while in design), or do you create it in code?
0
JDL129Author Commented:
James!!!  Thanks for the post.

I created it by adding it from the toolbar to the form using the contextMenuStrip selector.  I show it from a selection on a message box.  I can trap the click event but I can't differentiate between the three options.  I need to perform a task depending on the selection from the contextMenu.

Thanks,

Jerry
0
Jacques Bourgeois (James Burger)PresidentCommented:
You are probably trapping the Click on the menu itself, not on its separate items.

Click on the contextMenuStrip in the controls tray at the bottom of the form in design, so that the menu appears temporarily at the upper left corner of the form.

Double-click on each of the 3 entries. This will create 3 separate click events, each one associated with one of the entries.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JDL129Author Commented:
Mr. JamesBurger!!!!!

This is only the second accurate answer I've received on expert-exchange in about a year!!!!

Thanks so much!!

Jerry
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.