public override void HandleEvent(NodeEvent eventValue) { if (eventValue is FocusChangedEvent) { UpdateActiveControl(((FocusChangedEvent)eventValue).Node); } else if (eventValue is AdvanceFocusEvent) { Form.AdvanceFocus(((AdvanceFocusEvent)eventValue).Forward); } else { base.HandleEvent(eventValue); return; } eventValue.IsHandled = true; }