Displaying field's context menu

R

Raider

Hi there!

Please give me any solution to display context menu (usually accessed by
right mouse button) from Visual Basic code. I want to display it any time
user access some particular field.

Raider
 
N

Neil

Hi,

You have to create a custom pop-up toolbar. After you have done that then
you can place this toolbar in a controls Shortcut Menu Bar. This will then
pop up when the user right clicks on the control. Alternativly, you would
use the following VB code

Application.CommandBars("ToolBarName").ShowPopup

to display the menu whenever needed.

HTH,

Neil.
 
R

Raider

Thanks a lot. I'll try to use ShowPopup method.

Neil said:
Hi,

You have to create a custom pop-up toolbar. After you have done that then
you can place this toolbar in a controls Shortcut Menu Bar. This will then
pop up when the user right clicks on the control. Alternativly, you would
use the following VB code

Application.CommandBars("ToolBarName").ShowPopup

to display the menu whenever needed.

HTH,

Neil.
 

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