User Control Events - HELP

T

Timothy V

Hi everyone,
I hope you can help me. I have a User Control, which has a Label that covers
the entire control. I want to assign a MouseClick event to the User Control,
however, the event does not fire because the click fires the MouseClick
event on the Label rather than the User Control.

Is there a way to have this work by firing the MouseClick event on the User
Control?

Thanks in advance,

Timothy.
 
G

Guest

Hi Timothy,
why don't you just call the method you want to execute in the user control
in the mouse click event of the label i.e. the mouse click on the label and
the mouse click on the form both call the same method?

Mark.
 
T

Timothy V

Well, I could :) But what if i have 50 controls in the user control (i
simplified the example here). I just wanted to know if there is an easy way
:) Is there?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top