|
-
July 10th, 2007, 06:44 PM
#1
can labels be transparent to mouse events?
Hi, can anyone answer this question, please?
I am placing active panels on a form, that react when the mouse passes over them, but they fail to work if they have a label on them, and the mouse touches the area covered by the label. I should "pass" the event from the label to the panel.
Simple attempts, like this fail:
private void label_MouseMove(object sender, MouseEventArgs e)
{
Control C = ((Label)sender).Parent;
C.MouseMove(C, e); //Error, not allowed!!!
}
I'm new to C#, can anyone suggest a solution?
(Assumption: Labels are created runtime and the event handler of the underlying panel is defined elsewhere)
thanks,
Gyuri
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|