Can i Have both left click and right Click on a Label?

Hello,

How can i have both Mouse up event and ContextualMenu Event on a Label.
I have added ConstructContextualMenu, ContextualMenuaction, MouseDown,MouseUp but even if i left click or right click
only mouse up event is called.

Any suggestions?

It would seem that you can only detect this in MouseDown:

[code]Function MouseDown(X As Integer, Y As Integer) Handles MouseDown as Boolean
if IsContextualClick then
system.DebugLog(“yes”)
else
system.DebugLog(“no”)
end if

Return True
End Function
[/code]

If you want to carry it through to the MouseUp, use a property and set that on the MouseDown then read it on the MouseUp.

You are right Julian.
i was not detecting correctly isContectualClick on Mouse Up event.

Thank you very much.

Good you answered it yourself.