2 types derived from MenuStrip
System.Windows.Forms (2)
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
12internal partial class MdiControlStrip : MenuStrip
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
9internal class MdiWindowListStrip : MenuStrip
1 instantiation of MenuStrip
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
370_designMenu = new MenuStrip
53 references to MenuStrip
System.Windows.Forms (27)
src\winforms\src\Common\src\Obsoletions.cs (1)
36internal const string MainMenuMessage = $"`{nameof(MainMenu)}` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `{nameof(MenuStrip)}` instead.";
System\Windows\Forms\Controls\Menus\MenuStrip.MenuStripAccessibleObject.cs (1)
13public MenuStripAccessibleObject(MenuStrip owner)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
271else if (e.ToolStrip is MenuStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (5)
884MenuStrip? menuStripToActivate = null; 951internal static MenuStrip? GetMainMenuStrip(Control control) 970private static MenuStrip? GetFirstMenuStripRecursive(Control.ControlCollection controlsToLookIn) 983if (controlsToLookIn[i] is MenuStrip menuStrip) 1000MenuStrip? menuStrip = GetFirstMenuStripRecursive(controlsToLookIn[i].Controls);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
33if (e.ToolStrip is MenuStrip)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (5)
129else if (toolStrip is MenuStrip) 407else if (toolStrip is MenuStrip) 495int yOffset = (toolStrip is MenuStrip) ? 2 : 0; 835if (toolStrip is ToolStripDropDown or MenuStrip or StatusStrip) 1219bool drawCurve = RoundedEdges && (item?.GetCurrentParent() is not MenuStrip);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
79else if (ToolStrip is MenuStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (1)
141else if (toolStrip is MenuStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
262else if (toolStrip is MenuStrip)
System\Windows\Forms\Form.cs (6)
1255public MenuStrip? MainMenuStrip 1257get => Properties.GetValueOrDefault<MenuStrip>(s_propMainMenuStrip); 6183MenuStrip? mainMenuStrip = MainMenuStrip; 6249Type[] stockTypes = [typeof(MenuStrip)]; 6356MenuStrip? sourceMenuStrip = ToolStripManager.GetMainMenuStrip(this); 6381MenuStrip? sourceMenuStrip = ToolStripManager.GetMainMenuStrip(this);
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
76internal MenuStrip? MergedMenu { get; set; }
System\Windows\Forms\MDI\MdiWindowListItemConverter.cs (1)
20if (context?.Instance is MenuStrip menu)
System\Windows\Forms\MDI\MdiWindowListStrip.cs (2)
13private MenuStrip? _mergedMenu; 47internal MenuStrip? MergedMenu
System.Windows.Forms.Design (26)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
271|| item.GetType(host) == typeof(MenuStrip)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
48if (_designer.Component is MenuStrip menuStrip) 66private void CreateStandardMenuStrip(IDesignerHost host, MenuStrip tool)
System\Windows\Forms\Design\ToolStripDesigner.cs (11)
1482MenuStrip parentMenu = null; 1488parentMenu = parentForm.Controls.OfType<MenuStrip>().FirstOrDefault(); 1506if (parentPanel is null || ToolStrip is MenuStrip) 1514if (parentMenu is MenuStrip menuStrip) 1520if (ToolStrip is MenuStrip) 1525mainMenuStripProperty.SetValue(parentForm, ToolStrip as MenuStrip); 1532if (ToolStrip is not MenuStrip) 1554if (ToolStrip is MenuStrip) 1582MenuStrip menu = c as MenuStrip; 2421if (ToolStrip is MenuStrip)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
194if (toolStrip is MenuStrip) 219else if (toolStrip is MenuStrip)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
21private MenuStrip _designMenu;
System\Windows\Forms\Design\ToolStripInSituService.cs (2)
106if (c.GetCurrentParent() is MenuStrip tool) 133else if (comp is MenuStrip)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
342if (ParentTool is MenuStrip parent) 432private void InsertIntoMainMenu(MenuStrip parent, Type t)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
338if (immediateParent is MenuStrip
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
415if (parent is MenuStrip) 1450if (currentItem is MenuStrip or ToolStripDropDownItem) 1694else if (_currentItem is MenuStrip) 1806if (_owner._component is MenuStrip or ToolStripDropDownItem)