67 references to GetState
System.Windows.Forms (67)
System\Windows\Forms\ActiveX\AxHost.cs (4)
431else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE) 1535if (GetState(States.Visible) == value) 3146bool visible = GetState(States.Visible); 3151if (visible != GetState(States.Visible))
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
86if (GetState(States.TopLevel))
System\Windows\Forms\Control.ControlNativeWindow.cs (2)
93if (!_control.GetState(States.TrackingMouseEvent)) 96if (!_control.GetState(States.MouseEnterPending))
System\Windows\Forms\Control.cs (47)
533get => GetState(States.AllowDrop); 536if (GetState(States.AllowDrop) == value) 1082get => GetState(States.CausesValidation); 1279public bool Created => GetState(States.Created); 1412get => GetState(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled); 1464if (GetState(States.UseWaitCursor)) 1660public bool IsDisposed => GetState(States.Disposed); 1682public bool Disposing => GetState(States.Disposing); 1755return GetState(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled); 2051if (GetState(States.Disposing | States.Disposed)) 2165if (!GetState(States.CheckedHost)) 2204return GetState(States.HostedInDialog); 2327get => GetState(States.IsAccessible); 2380return GetState(States.Mirrored); 2677public bool RecreatingHandle => GetState(States.Recreate); 3353get => GetState(States.UseWaitCursor); 3356if (GetState(States.UseWaitCursor) != value) 3764if (GetState(States.LayoutIsDirty)) 4469ObjectDisposedException.ThrowIf(GetState(States.Disposed), this); 4471if (GetState(States.CreatingHandle)) 4566if (!ignoreVisible && (GetState(States.Created) || !Visible)) 4685if (GetState(States.OwnCtlBrush)) 4708if (GetState(States.Disposing)) 4713if (GetState(States.CreatingHandle)) 5287if (!GetState(States.TopLevel) && !( 5349internal bool DesiredVisibility => GetState(States.Visible); 5743if (!GetState(States.TrackingMouseEvent)) 6583if (GetState(States.OwnCtlBrush)) 6959if (GetState(States.Enabled)) 7332if (GetState(States.ThreadMarshalPending)) 7448if (!RecreatingHandle && GetState(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush)) 7962|| GetState(States.ExceptionWhilePainting)) 8265if (GetState(States.ExceptionWhilePainting)) 8407if (ParentInternal is not null && ParentInternal.GetState(States.LayoutIsDirty)) 9158bool created = GetState(States.Created); 9159if (GetState(States.TrackingMouseEvent)) 9373if (GetState(States.TrackingMouseEvent)) 9422if (LayoutSuspendCount == 0 && GetState(States.LayoutDeferred) && performLayout) 9461if (accept == GetState(States.DropTarget) || !IsHandleCreated) 10084if (!GetState(States.SizeLockedByOS)) 10480private bool ShouldSerializeEnabled() => !GetState(States.Enabled); 11320if (!RecreatingHandle && !Disposing && !IsDisposed && GetState(States.TrackingMouseEvent)) 11578&& GetState(States.MousePressed) 11584if (!GetState(States.DoubleClickFired)) 11996bool oldVisibleBit = GetState(States.Visible); 12034if (!GetState(States.ParentRecreating) && (oldVisibleProperty != visible)) 12601bool IArrangedElement.ParticipatesInLayout => GetState(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16852if (GetState(States.Visible))
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
718if (RecreatingHandle || GetState(States.CreatingHandle)) 2449if (GetState(States.Disposed))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3230if (m.LParamInternal == Handle && !GetState(States.CreatingHandle))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4662get { return GetState(States.Visible); }
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
67get { return GetState(States.Visible); }
System\Windows\Forms\Form.cs (7)
1470bool oldVisibleBit = GetState(States.Visible); 1561public bool Modal => GetState(States.Modal); 3183if (GetState(States.CreatingHandle)) 3777return GetState(States.Visible) && IsHandleCreated; 4246if (GetState(States.Modal)) 5959if (GetState(States.Modal)) 6887if (!GetState(States.Recreate))