
label click event only works with right mouse click
Quote:
> New to vb, not to programming.
> I'm building a simple form to display a running clock.
> I want to click the label box (showing the time display itself) to
> toggle between having the seconds displayed or not.
> It works, but with the right mouse click, not the left as I
expected.
> If I add a command button to toggle the clock display, it
> works as expected with a left mouse click. Is there a property
> somewhere for labels that I'm overlooking? I'm baffled.
Me too. I assume you are using the Label's Click event? This is
fired for labels (as for everything) by either the left or right
buttons, so it should work either way.
I would suggest temporarily using the Label's MouseDown event instead.
This event allows you to detect which button has been depressed. You
can arrange only to respond to the left button. See if this works.
Maybe the best bet is to post the relevant code here, it may be you
have overlooked something.
Chrisitna
--
Christina West