I have a two dimensional array of labels with a common click event handler.
I have not yet discovered the magic required to determine which mouse button was clicked in the handler. There is no lblArray(I,J).Buttons property.
So my question is: How do I determine if th eright mouse button was clicked? I have tried:
VB Code:
if lblArray(I, J).MouseButtons and MouseButtons.Right <> 0 then ... end if
to no avail. In fact, lblArray(I,J).MouseButtons is always zero.
(I have a way to determine the I and J from the mouse click.)
RussCanada
Ontario, Canada




Reply With Quote