72 references to FormWindowState
System.Windows.Forms (72)
winforms\Managed\System\WinForms\DataGridView.cs (1)
3696
return parentForm != null && parentForm.WindowState ==
FormWindowState
.Minimized;
winforms\Managed\System\WinForms\Form.cs (68)
288
Debug.Assert(formState[FormStateWindowState] == (int)
FormWindowState
.Normal, "Failed to set formState[FormStateWindowState]");
902
if (WindowState !=
FormWindowState
.Normal) {
1036
&& (WindowState ==
FormWindowState
.Maximized
1037
|| WindowState ==
FormWindowState
.Normal)) {
1042
&& form.WindowState ==
FormWindowState
.Maximized) {
1044
formState[FormStateWindowState] = (int)
FormWindowState
.Maximized;
1358
return (WindowState ==
FormWindowState
.Maximized || (IsMdiChild && (formState[FormStateMdiChildMax] ==1)));
2339
case
FormWindowState
.Maximized:
2341
case
FormWindowState
.Minimized:
2719
if (WindowState ==
FormWindowState
.Maximized) {
2734
if (value && !IsMdiChild && (WindowState ==
FormWindowState
.Maximized || TopMost)) {
2749
DefaultValue(
FormWindowState
.Normal),
2752
public
FormWindowState
WindowState {
2754
return(
FormWindowState
)formState[FormStateWindowState];
2760
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FormWindowState
.Normal, (int)
FormWindowState
.Maximized))
2762
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FormWindowState
));
2770
if (value !=
FormWindowState
.Normal) {
2776
case
FormWindowState
.Normal:
2779
case
FormWindowState
.Maximized:
2780
case
FormWindowState
.Minimized:
2788
case
FormWindowState
.Normal:
2791
case
FormWindowState
.Maximized:
2794
case
FormWindowState
.Minimized:
3226
if (WindowState !=
FormWindowState
.Minimized) {
3233
FormWindowState
winState = WindowState;
3239
bool showMin = MinimizeBox && winState !=
FormWindowState
.Minimized;
3240
bool showMax = MaximizeBox && winState !=
FormWindowState
.Maximized;
3242
bool showRestore = winState !=
FormWindowState
.Normal;
3243
bool showSize = sizableBorder && winState !=
FormWindowState
.Minimized
3244
&& winState !=
FormWindowState
.Maximized;
3399
if ((
FormWindowState
)formState[FormStateWindowState] !=
FormWindowState
.Normal
3661
&& (
FormWindowState
)formState[FormStateWindowState] ==
FormWindowState
.Maximized) {
3665
formState[FormStateWindowState] = (int)
FormWindowState
.Normal;
3668
formState[FormStateWindowState] = (int)
FormWindowState
.Maximized;
4038
if (WindowState !=
FormWindowState
.Maximized) {
4062
switch ((
FormWindowState
)formState[FormStateWindowState]) {
4063
case
FormWindowState
.Maximized:
4066
case
FormWindowState
.Minimized:
4400
if (this.IsMdiChild && (formStateEx[FormStateExMnemonicProcessed] == 1 || this != this.MdiParentInternal.ActiveMdiChildInternal || this.WindowState ==
FormWindowState
.Minimized)){
5512
if (!IsMdiChild && (WindowState ==
FormWindowState
.Minimized || WindowState ==
FormWindowState
.Maximized)) {
5667
if (formState[FormStateWindowState] == (int)
FormWindowState
.Minimized) {
5679
if (WindowState ==
FormWindowState
.Normal) {
5789
if (WindowState ==
FormWindowState
.Normal) {
5827
if (WindowState !=
FormWindowState
.Normal) {
5862
if (WindowState !=
FormWindowState
.Normal) {
5897
if (WindowState ==
FormWindowState
.Normal
6321
if (formState[FormStateWindowState] != (int)
FormWindowState
.Minimized) {
6571
if (activeMdiChild != null && activeMdiChild.WindowState ==
FormWindowState
.Maximized) {
6845
FormWindowState
oldState = WindowState;
6856
if (formState[FormStateWindowState] != (int)
FormWindowState
.Normal) {
6857
formState[FormStateWindowState] = (int)
FormWindowState
.Normal;
6862
formState[FormStateWindowState] = (int)
FormWindowState
.Maximized;
6869
formState[FormStateWindowState] = (int)
FormWindowState
.Minimized;
6880
if (oldState ==
FormWindowState
.Normal && WindowState !=
FormWindowState
.Normal) {
6882
if (WindowState ==
FormWindowState
.Minimized) {
6899
if (oldState ==
FormWindowState
.Minimized && WindowState !=
FormWindowState
.Minimized) {
6904
case
FormWindowState
.Normal:
6907
case
FormWindowState
.Maximized:
6908
case
FormWindowState
.Minimized:
6983
WindowState =
FormWindowState
.Maximized;
6986
WindowState =
FormWindowState
.Minimized;
7914
if (owner.WindowState ==
FormWindowState
.Minimized) {
winforms\Managed\System\WinForms\MDIClient.cs (1)
259
if (child.CanRecreateHandle() && child.WindowState ==
FormWindowState
.Minimized) {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
590
new public
FormWindowState
WindowState {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
1727
if (mdiChild.WindowState ==
FormWindowState
.Maximized) {