Displaying field's context menu

  • Thread starter Thread starter Raider
  • Start date Start date
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
 
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.
 
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.
 
Back
Top