Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Clickable Panel control with labels?

$
0
0
Hi,

I have a panel with a few labels in it.  When I click on the panel I have a menu come up elsewhere on my form.  Clicking the panel toggles this menu, visible/not visible

However, I've noticed if I click on an enabled label within the panel I'm not able to engage the panel_click event. 
If I disable the labels in the panel then I can engage the panel_click event if I click on a label within that panel.

However, the problem is, disabling a label, causes its text colour to be greyed out.  I need to be able to change the text colour.
so... is it possible to override the text colour of a disabled label, or is there a way I can get at the panels_click event when I click on a label within the panel.?
Or is there a way i can leave the labels enabled, but clicking somewhere within the panel, including on the labels them selves will give me the panel_click?


I would prefer not have to add an event to each labels on click event.

Any ideas?

Thanks

Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>