ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupCustomControl.MonitorControl C# (CSharp) Method

MonitorControl() private method

private MonitorControl ( Control c ) : void
c System.Windows.Forms.Control
return void
        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);
        }