1 write to system
System.Windows.Forms (1)
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
45
system
= new SystemMenuItem();
18 references to system
System.Windows.Forms (18)
winforms\Managed\System\WinForms\MDIControlStrip.cs (18)
55
this.Items.AddRange(new ToolStripItem[] { minimize, restore,close,
system
});
71
system
.Image = GetTargetWindowIcon();
72
system
.Alignment = ToolStripItemAlignment.Left;
73
system
.DropDownOpening += new EventHandler(OnSystemMenuDropDownOpening);
74
system
.ImageScaling = ToolStripItemImageScaling.None;
75
system
.DoubleClickEnabled = true;
76
system
.DoubleClick += new EventHandler(OnSystemMenuDoubleClick);
77
system
.Padding = Padding.Empty;
78
system
.ShortcutKeys = Keys.Alt | Keys.OemMinus;
162
system
.SetNativeTargetWindow(target);
168
system
.SetNativeTargetMenu(hMenu);
174
if (
system
.HasDropDownItems) {
176
system
.DropDown.Items.Clear();
177
system
.DropDown.Dispose();
180
system
.Image = GetTargetWindowIcon();
184
if (!
system
.HasDropDownItems && (target != null)) {
185
system
.DropDown = ToolStripDropDownMenu.FromHMenu(UnsafeNativeMethods.GetSystemMenu(new HandleRef(this, Control.GetSafeHandle(target)), /*bRevert=*/false), target);
188
system
.DropDown.Dispose();