22 writes to WindowState
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
899MainForm.WindowState = FormWindowState.Normal
System.Windows.Forms (3)
System\Windows\Forms\Form.cs (2)
6557WindowState = FormWindowState.Maximized; 6560WindowState = FormWindowState.Minimized;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
334set => base.WindowState = value;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
344form.WindowState = FormWindowState.Normal;
System.Windows.Forms.IntegrationTests.Common (2)
TestHelpers.cs (2)
385form.WindowState = FormWindowState.Minimized; 387form.WindowState = FormWindowState.Normal;
System.Windows.Forms.Tests (7)
System\Windows\Forms\FormTests.cs (3)
1017form.WindowState = FormWindowState.Maximized; 1026form.WindowState = FormWindowState.Normal; 1248control.WindowState = FormWindowState.Maximized;
System\Windows\Forms\MdiControlStripTests.cs (4)
212WindowState = FormWindowState.Maximized 258WindowState = FormWindowState.Maximized 297WindowState = FormWindowState.Maximized 324mdiChild.WindowState = FormWindowState.Maximized;
System.Windows.Forms.UI.IntegrationTests (4)
FormTests.cs (2)
37form.WindowState = windowState; 96form.WindowState = windowState;
MDITests.cs (2)
24WindowState = FormWindowState.Minimized 46WindowState = FormWindowState.Minimized
WinFormsControlsTest (4)
MdiChild.cs (2)
31WindowState = FormWindowState.Maximized 86WindowState = FormWindowState.Normal;
MdiParent.cs (2)
25WindowState = FormWindowState.Maximized 53WindowState = FormWindowState.Maximized
36 references to WindowState
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
898If MainForm.WindowState = FormWindowState.Minimized Then
System.Windows.Forms (31)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2913=> TopLevelControlInternal is Form parentForm && parentForm.WindowState == FormWindowState.Minimized;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
928if (mdiChild.WindowState == FormWindowState.Maximized)
System\Windows\Forms\Form.cs (27)
697if (WindowState != FormWindowState.Normal) 802if (Visible && (WindowState is FormWindowState.Maximized or FormWindowState.Normal)) 807if (form is not null && form.WindowState == FormWindowState.Maximized) 1061return (WindowState == FormWindowState.Maximized || (IsMdiChild && (_formState[s_formStateMdiChildMax] == 1))); 1794switch (WindowState) 2144if (WindowState == FormWindowState.Maximized) 2154if (value && !IsMdiChild && (WindowState == FormWindowState.Maximized || TopMost)) 2887if (WindowState != FormWindowState.Minimized) 2896FormWindowState winState = WindowState; 3675if (WindowState != FormWindowState.Maximized) 3792|| WindowState == FormWindowState.Minimized)) 4862if (!IsMdiChild && (WindowState == FormWindowState.Minimized || WindowState == FormWindowState.Maximized)) 5002if (WindowState == FormWindowState.Normal) 5085if (WindowState == FormWindowState.Normal) 5110if (WindowState == FormWindowState.Normal) 5135if (WindowState != FormWindowState.Normal) 5169if (WindowState != FormWindowState.Normal) 5225if (WindowState == FormWindowState.Normal && (Height != height || Width != width)) 6119if (activeMdiChild is not null && activeMdiChild.WindowState == FormWindowState.Maximized) 6376if (WindowState == FormWindowState.Maximized && MdiParent?.MdiControlStrip is not null) 6402FormWindowState oldState = WindowState; 6445if (oldState == FormWindowState.Normal && WindowState != FormWindowState.Normal) 6447if (WindowState == FormWindowState.Minimized) 6468if (oldState == FormWindowState.Minimized && WindowState != FormWindowState.Minimized) 6473switch (WindowState) 6484if (oldState != WindowState)
System\Windows\Forms\MDI\MDIClient.cs (1)
247if (Controls[i] is Form child && child.CanRecreateHandle() && child.WindowState == FormWindowState.Minimized)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
333get => base.WindowState;
System.Windows.Forms.Tests (4)
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
163Assert.Equal(FormWindowState.Normal, control.WindowState);
System\Windows\Forms\FormTests.cs (3)
165Assert.Equal(FormWindowState.Normal, control.WindowState); 993Assert.Equal(FormWindowState.Maximized, form.WindowState); 1022Assert.Equal(FormWindowState.Maximized, form.WindowState);