126 references to _formState
System.Windows.Forms (126)
System\Windows\Forms\Form.cs (126)
180Debug.Assert(_formState[s_formStateAllowTransparency] == 0, "Failed to set formState[FormStateAllowTransparency]"); 181Debug.Assert(_formState[s_formStateBorderStyle] == (int)FormBorderStyle.Sizable, "Failed to set formState[FormStateBorderStyle]"); 182Debug.Assert(_formState[s_formStateTaskBar] == 1, "Failed to set formState[FormStateTaskBar]"); 183Debug.Assert(_formState[s_formStateControlBox] == 1, "Failed to set formState[FormStateControlBox]"); 184Debug.Assert(_formState[s_formStateKeyPreview] == 0, "Failed to set formState[FormStateKeyPreview]"); 185Debug.Assert(_formState[s_formStateLayered] == 0, "Failed to set formState[FormStateLayered]"); 186Debug.Assert(_formState[s_formStateMaximizeBox] == 1, "Failed to set formState[FormStateMaximizeBox]"); 187Debug.Assert(_formState[s_formStateMinimizeBox] == 1, "Failed to set formState[FormStateMinimizeBox]"); 188Debug.Assert(_formState[s_formStateHelpButton] == 0, "Failed to set formState[FormStateHelpButton]"); 189Debug.Assert(_formState[s_formStateStartPos] == (int)FormStartPosition.WindowsDefaultLocation, "Failed to set formState[FormStateStartPos]"); 190Debug.Assert(_formState[s_formStateWindowState] == (int)FormWindowState.Normal, "Failed to set formState[FormStateWindowState]"); 191Debug.Assert(_formState[s_formStateShowWindowOnCreate] == 0, "Failed to set formState[FormStateShowWindowOnCreate]"); 192Debug.Assert(_formState[s_formStateAutoScaling] == 1, "Failed to set formState[FormStateAutoScaling]"); 193Debug.Assert(_formState[s_formStateSetClientSize] == 0, "Failed to set formState[FormStateSetClientSize]"); 194Debug.Assert(_formState[s_formStateTopMost] == 0, "Failed to set formState[FormStateTopMost]"); 195Debug.Assert(_formState[s_formStateSWCalled] == 0, "Failed to set formState[FormStateSWCalled]"); 196Debug.Assert(_formState[s_formStateMdiChildMax] == 0, "Failed to set formState[FormStateMdiChildMax]"); 197Debug.Assert(_formState[s_formStateRenderSizeGrip] == 0, "Failed to set formState[FormStateRenderSizeGrip]"); 198Debug.Assert(_formState[s_formStateSizeGripStyle] == 0, "Failed to set formState[FormStateSizeGripStyle]"); 199Debug.Assert(_formState[s_formStateIsWindowActivated] == 0, "Failed to set formState[FormStateIsWindowActivated]"); 200Debug.Assert(_formState[s_formStateIsTextEmpty] == 0, "Failed to set formState[FormStateIsTextEmpty]"); 201Debug.Assert(_formState[s_formStateIsActive] == 0, "Failed to set formState[FormStateIsActive]"); 202Debug.Assert(_formState[s_formStateIconSet] == 0, "Failed to set formState[FormStateIconSet]"); 242return _formState[s_formStateIsActive] != 0; 249if (_formState[s_formStateIsActive] != 0 == value) 259_formState[s_formStateIsActive] = value ? 1 : 0; 263_formState[s_formStateIsWindowActivated] = 1; 281_formState[s_formStateIsWindowActivated] = 0; 357get => _formState[s_formStateAllowTransparency] != 0; 360if (value == (_formState[s_formStateAllowTransparency] != 0)) 365_formState[s_formStateAllowTransparency] = value ? 1 : 0; 367_formState[s_formStateLayered] = _formState[s_formStateAllowTransparency]; 400return _formState[s_formStateAutoScaling] != 0; 409_formState[s_formStateAutoScaling] = 1; 418_formState[s_formStateAutoScaling] = 0; 661get => (FormBorderStyle)_formState[s_formStateBorderStyle]; 666_formState[s_formStateBorderStyle] = (int)value; 667if (_formState[s_formStateSetClientSize] == 1 && !IsHandleCreated) 691if (_formState[s_formStateIconSet] == 0) 746get => _formState[s_formStateControlBox] != 0; 749_formState[s_formStateControlBox] = value ? 1 : 0; 775if (TopLevel && (_formState[s_formStateLayered] != 0)) 789if (_formState[s_formStateTaskBar] != 0) 810_formState[s_formStateWindowState] = (int)FormWindowState.Maximized; 815if (_formState[s_formStateMdiChildMax] != 0) 832_formState[s_formStateShowWindowOnCreate] = 1; 837_formState[s_formStateShowWindowOnCreate] = 0; 968return _formState[s_formStateHelpButton] != 0; 975_formState[s_formStateHelpButton] = 1; 979_formState[s_formStateHelpButton] = 0; 1007if (_formState[s_formStateIconSet] == 0) 1026_formState[s_formStateIconSet] = value is null ? 0 : 1; 1061return (WindowState == FormWindowState.Maximized || (IsMdiChild && (_formState[s_formStateMdiChildMax] == 1))); 1143get => _formState[s_formStateKeyPreview] != 0; 1144set => _formState[s_formStateKeyPreview] = value ? 1 : 0; 1398get => _formState[s_formStateMaximizeBox] != 0; 1401_formState[s_formStateMaximizeBox] = value ? 1 : 0; 1546get => _formState[s_formStateMinimizeBox] != 0; 1549_formState[s_formStateMinimizeBox] = value ? 1 : 0; 1580bool oldLayered = _formState[s_formStateLayered] != 0; 1585if (_formState[s_formStateLayered] != 1) 1587_formState[s_formStateLayered] = 1; 1596_formState[s_formStateLayered] = (TransparencyKey != Color.Empty) ? 1 : 0; 1597if (oldLayered != (_formState[s_formStateLayered] != 0)) 1734get => _formState[s_formStateTaskBar] != 0; 1739_formState[s_formStateTaskBar] = value ? 1 : 0; 1844return (SizeGripStyle)_formState[s_formStateSizeGripStyle]; 1855_formState[s_formStateSizeGripStyle] = (int)value; 1873return (FormStartPosition)_formState[s_formStateStartPos]; 1879_formState[s_formStateStartPos] = (int)value; 1983get => _formState[s_formStateTopMost] != 0; 1995_formState[s_formStateTopMost] = value ? 1 : 0; 2012bool oldLayered = (_formState[s_formStateLayered] == 1); 2016_formState[s_formStateLayered] = 1; 2020_formState[s_formStateLayered] = (OpacityAsByte < 255) ? 1 : 0; 2023if (oldLayered != (_formState[s_formStateLayered] != 0)) 2038FormStartPosition startPos = (FormStartPosition)_formState[s_formStateStartPos]; 2105if (_formState[s_formStateSWCalled] == 0) 2473get => (FormWindowState)_formState[s_formStateWindowState]; 2508_formState[s_formStateWindowState] = (int)value; 3007if ((FormWindowState)_formState[s_formStateWindowState] != FormWindowState.Normal 3027if (_formState[s_formStateSetClientSize] != 0) 3030_formState[s_formStateSetClientSize] = 0; 3308&& (FormWindowState)_formState[s_formStateWindowState] == FormWindowState.Maximized) 3312_formState[s_formStateWindowState] = (int)FormWindowState.Normal; 3313_formState[s_formStateMdiChildMax] = 1; 3315_formState[s_formStateWindowState] = (int)FormWindowState.Maximized; 3316_formState[s_formStateMdiChildMax] = 0; 3328if ((FormStartPosition)_formState[s_formStateStartPos] != FormStartPosition.WindowsDefaultBounds) 3333if (_formState[s_formStateShowWindowOnCreate] == 1) 3358if (_formState[s_formStateTopMost] != 0) 3582switch ((FormBorderStyle)_formState[s_formStateBorderStyle]) 3616if (_formState[s_formStateSetClientSize] != 0) 3625switch ((FormStartPosition)_formState[s_formStateStartPos]) 3691switch ((FormWindowState)_formState[s_formStateWindowState]) 4233if (_formState[s_formStateAutoScaling] == 1 && !DesignMode) 4236_formState[s_formStateAutoScaling] = 0; 4401if (_formState[s_formStateRenderSizeGrip] != 0) 4443if (_formState[s_formStateRenderSizeGrip] != 0) 4631if (!ControlBox && _formState[s_formStateIsTextEmpty] != newTextEmpty) 4636_formState[s_formStateIsTextEmpty] = newTextEmpty; 4767if (_formState[s_formStateKeyPreview] != 0 && ProcessKeyEventArgs(ref m)) 4949_formState[s_formStateIconSet] = 0; 4988if (_formState[s_formStateWindowState] == (int)FormWindowState.Minimized) 5315_formState[s_formStateSetClientSize] = 1; 5853return _formState[s_formStateAutoScaling] != 0; 5866return _formState[s_formStateIconSet] == 1; 5908if (_formState[s_formStateWindowState] != (int)FormWindowState.Minimized) 5938int current = _formState[s_formStateRenderSizeGrip]; 5946_formState[s_formStateRenderSizeGrip] = 0; 5953_formState[s_formStateRenderSizeGrip] = 1; 5956_formState[s_formStateRenderSizeGrip] = 0; 5961_formState[s_formStateRenderSizeGrip] = 1; 5965_formState[s_formStateRenderSizeGrip] = 0; 5974if (_formState[s_formStateRenderSizeGrip] != current) 6040if ((_formState[s_formStateLayered] != 0) && IsHandleCreated && TopLevel) 6341if ((FormBorderStyle == FormBorderStyle.FixedDialog && _formState[s_formStateIconSet] == 0) || !ShowIcon) 6416if (_formState[s_formStateWindowState] != (int)FormWindowState.Normal) 6418_formState[s_formStateWindowState] = (int)FormWindowState.Normal; 6423if (_formState[s_formStateMdiChildMax] == 0) 6425_formState[s_formStateWindowState] = (int)FormWindowState.Maximized; 6432if (_formState[s_formStateMdiChildMax] == 0) 6434_formState[s_formStateWindowState] = (int)FormWindowState.Minimized; 6899if (_formState[s_formStateRenderSizeGrip] != 0) 6939_formState[s_formStateSWCalled] = 1;