67 references to GetState
System.Windows.Forms (67)
System\Windows\Forms\ActiveX\AxHost.cs (4)
430else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE) 1534if (GetState(States.Visible) == value) 3145bool visible = GetState(States.Visible); 3150if (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)
532get => GetState(States.AllowDrop); 535if (GetState(States.AllowDrop) == value) 1081get => GetState(States.CausesValidation); 1278public bool Created => GetState(States.Created); 1411get => GetState(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled); 1463if (GetState(States.UseWaitCursor)) 1659public bool IsDisposed => GetState(States.Disposed); 1681public bool Disposing => GetState(States.Disposing); 1754return GetState(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled); 2050if (GetState(States.Disposing | States.Disposed)) 2164if (!GetState(States.CheckedHost)) 2203return GetState(States.HostedInDialog); 2326get => GetState(States.IsAccessible); 2379return GetState(States.Mirrored); 2676public bool RecreatingHandle => GetState(States.Recreate); 3352get => GetState(States.UseWaitCursor); 3355if (GetState(States.UseWaitCursor) != value) 3763if (GetState(States.LayoutIsDirty)) 4468ObjectDisposedException.ThrowIf(GetState(States.Disposed), this); 4470if (GetState(States.CreatingHandle)) 4565if (!ignoreVisible && (GetState(States.Created) || !Visible)) 4684if (GetState(States.OwnCtlBrush)) 4707if (GetState(States.Disposing)) 4712if (GetState(States.CreatingHandle)) 5246if (!GetState(States.TopLevel) && !( 5308internal bool DesiredVisibility => GetState(States.Visible); 5702if (!GetState(States.TrackingMouseEvent)) 6542if (GetState(States.OwnCtlBrush)) 6918if (GetState(States.Enabled)) 7291if (GetState(States.ThreadMarshalPending)) 7407if (!RecreatingHandle && GetState(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush)) 7921|| GetState(States.ExceptionWhilePainting)) 8224if (GetState(States.ExceptionWhilePainting)) 8366if (ParentInternal is not null && ParentInternal.GetState(States.LayoutIsDirty)) 9117bool created = GetState(States.Created); 9118if (GetState(States.TrackingMouseEvent)) 9332if (GetState(States.TrackingMouseEvent)) 9381if (LayoutSuspendCount == 0 && GetState(States.LayoutDeferred) && performLayout) 9420if (accept == GetState(States.DropTarget) || !IsHandleCreated) 10051if (!GetState(States.SizeLockedByOS)) 10447private bool ShouldSerializeEnabled() => !GetState(States.Enabled); 11287if (!RecreatingHandle && !Disposing && !IsDisposed && GetState(States.TrackingMouseEvent)) 11545&& GetState(States.MousePressed) 11551if (!GetState(States.DoubleClickFired)) 11964bool oldVisibleBit = GetState(States.Visible); 12002if (!GetState(States.ParentRecreating) && (oldVisibleProperty != visible)) 12569bool IArrangedElement.ParticipatesInLayout => GetState(States.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16833if (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)
3219if (m.LParamInternal == Handle && !GetState(States.CreatingHandle))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4667get { 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))