3

I know this was already asked here: Displaying tooltip over a disabled control

But it doesn't work for me. I have a TabControl control, with a TabPage in it. In the TabPage, I have a TableLayoutPanel. My disabled controls are inside that panel.

The problem is that the event does not fire when the mouse is over the disabled control. I tried the code in the MouseMove of the Form, the TabControl, the TabPage, the TableLayoutPanel and the disabled controls themselves, but none of them are working. Is there another solution?

Community
  • 1
  • 1
Amaranth
  • 2,433
  • 6
  • 36
  • 58

1 Answers1

2

Try calling the GetChildAtPoint function from the container control, which in your case, sounds like the TableLayoutPanel:

Control control = tableLayoutPanel1.GetChildAtPoint(e.Location);
LarsTech
  • 80,625
  • 14
  • 153
  • 225
  • That was it! Thank you. Also, to make it more general, I casted the sender of the event as a control and used it to the the Child (In my current case, it's always the tablelayoutpanel, but I might use it elsewhere too). – Amaranth Sep 09 '13 at 16:31