Hi Serge,
For this you will need 2 OCX events. The first is the OCX.MouseDown. This event has 4 parameters. The first parameter is p-Button. When the value of p-button = 1 then it means that the left mousebutton has been pressed. If the value is 2 then the right button is pressed. Save this value in a variable that you have defined at the top level of your procedure you will need it later :awink:
The next event that fires when you use your mouse is the OCX.MouseClick event. Since this event fires when a mouse-click is completed, it will always fire after the OCX.MouseDown. In the OCX.MouseClick event you can therefore check your variable that was filled during the mousedown and you will be able to determine if the user pressed the left or the right mouse button.
Greetings,
Ruud