private void MonitorControl(Control c)
{
// Monitor the mouse enter and leave
c.MouseEnter += new EventHandler(OnCustomControlEnter);
c.MouseLeave += new EventHandler(OnCustomControlLeave);
// Hook into child controls
foreach (Control child in c.Controls)
MonitorControl(child);
}