private void OnTick(object sender, EventArgs e) { autoMenuExpandTimer.Enabled = false; if (CurrentItem is null) { return; } EndTransition(/*forceClose*/ false); if (CurrentItem != null && !CurrentItem.IsDisposed && CurrentItem.Selected && CurrentItem.Enabled && ToolStripManager.ModalMenuFilter.InMenuMode) { Debug.WriteLineIf(ToolStrip.s_menuAutoExpandDebug.TraceVerbose, "[MenuTimer.OnTick] calling OnMenuAutoExpand"); CurrentItem.OnMenuAutoExpand(); } }