Ad Context Menu in Outlook 2007

S

Sanya Ibrahim

Hello All,
I have a List Box in a User Form in Outlook 2007. I want to add a Context
Menu that pops up when i right click on the Mouse. Can any one please tell me
how to go about it?
Thanks,
Sanya
 
K

Ken Slovak - [MVP - Outlook]

If this is an Outlook VBA UserForm you would need to add a handler for the
UserForm.MouseUp or .MouseDown events. If you want to handle a right-click
on the listbox you would handle ether of those events on the ListBox object.

In either case I'm not sure how you'd create a context menu if it's possible
at all. You'd have to research that in the Help for VBA or MS Forms 2.0 (the
library that supplies the UserForm and controls). The Object Browser shows
no menus of any kind in that library.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top