845 references to IsHandleCreated
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\Internal\WebClientCopy.vb (1)
134If _progressDialog.IsHandleCreated Then
System.Windows.Forms (806)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
43if (ownerControl.IsHandleCreated)
System\Windows\Forms\ActiveX\AxHost.cs (20)
424else if (!containingControl.Visible && Visible && IsHandleCreated && GetOcState() >= OC_INPLACE) 428else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE) 814private HWND GetHandleNoCreate() => IsHandleCreated ? (HWND)Handle : default; 928if (olduMode != newuMode && !IsHandleCreated && !_axState[s_disposed]) 952if (uiDeactivate && IsHandleCreated) 1014if (IsHandleCreated) 1045Debug.Assert(!IsHandleCreated, "if we need a fake window, we can't have a real one"); 1203if (!IsHandleCreated) 1241if (!IsHandleCreated || _wndprocAddr == IntPtr.Zero) 1279else if (IsHandleCreated) 1506if (!IsHandleCreated) 1518if (IsHandleCreated) 1538if ((IsHandleCreated || value) && ParentInternal is not null && ParentInternal.Created && !_axState[s_fOwnWindow]) 1550if (!IsHandleCreated) 1619Debug.Assert(IsHandleCreated, "gotta have a window to hide"); 1625Debug.Assert(!IsHandleCreated, "if we are inplace deactivated we should not have a window."); 2994if (ParentInternal is null || !ParentInternal.IsHandleCreated) 3222if (IsHandleCreated) 3231Debug.Assert(IsHandleCreated, "we got to have a handle to be here..."); 3371return IsHandleCreated;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
446if (!_control.IsHandleCreated)
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
27if (MainForm is not null && MainForm.IsHandleCreated)
System\Windows\Forms\Application.ParkingWindow.cs (3)
62if (_childCount != 0 || !IsHandleCreated) 109if (!IsHandleCreated) 122if (!IsHandleCreated)
System\Windows\Forms\Application.ThreadContext.cs (1)
767if (CurrentForm is not null && CurrentForm.IsHandleCreated && PInvoke.IsWindowEnabled(CurrentForm) != modalEnabled)
System\Windows\Forms\ContextMenuStrip.cs (3)
135&& IsHandleCreated 145if (IsHandleCreated && !IsInDesignMode) 162if (IsHandleCreated && !IsInDesignMode)
System\Windows\Forms\Control.cs (66)
637if (!IsHandleCreated) 1119public bool CanFocus => IsHandleCreated && PInvoke.IsWindowVisible(this) && PInvoke.IsWindowEnabled(this); 1149get => IsHandleCreated && PInvoke.GetCapture() == HWND; 1213if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1306if (!IsHandleCreated) 1535internal uint CreateThreadId => IsHandleCreated 1577if (IsHandleCreated) 1880=> IsHandleCreated && PInvoke.GetFocus() == InternalHandle; 1918if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2210if (!IsHandleCreated) 2315if (!IsHandleCreated || !Visible) 2356internal HWND InternalHandle => !IsHandleCreated ? default : (HWND)Handle; 2383if (IsHandleCreated) 2391if (!marshalingControl.IsHandleCreated) 2461if (!IsHandleCreated) 2819if (!IsHandleCreated) 3158if (IsHandleCreated) 3321if (!IsHandleCreated || DesignMode) 3391if (!IsHandleCreated) 3666if (!IsHandleCreated) 3680if (IsHandleCreated) 4222if (IsHandleCreated && AppContextSwitches.NoClientNotifications) 4377if (!IsHandleCreated) 4399else if (IsHandleCreated && GetTopLevel() && PInvoke.IsWindowEnabled(this)) 4662if (!IsHandleCreated) 4675if (control.IsHandleCreated) 4819if (IsHandleCreated) 4998if (!IsHandleCreated) 5075Debug.Assert(IsHandleCreated, "Handle should be created by now"); 5120while (c is not null && !c.IsHandleCreated) 5136Debug.Assert(c.IsHandleCreated, "FindMarshalingControl chose a bad control."); 5499if (!handleCreatedOnly || c.IsHandleCreated) 5902else if (IsHandleCreated) 5948if (IsHandleCreated) 5995else if (IsHandleCreated) 6371return IsHandleCreated 6493if (!IsHandleCreated) 6855if (IsHandleCreated) 6903if (IsHandleCreated) 7082if (parent is not null && IsHandleCreated) 7114if (IsHandleCreated) 7349if (IsHandleCreated) 7414if (IsHandleCreated) 8001if (IsHandleCreated) 9225if (!IsHandleCreated) 9266if (childControl is not null && childControl.IsHandleCreated) 9320if (controlSnapshot is not null && IsHandleCreated) 9326if (childControl is not null && childControl.IsHandleCreated) 9558if (accept == GetState(States.DropTarget) || !IsHandleCreated) 10050else if (IsHandleCreated && GetTopLevel()) 10171if (!IsHandleCreated) 10264if (IsHandleCreated) 10423if (IsHandleCreated || value) 10437else if (IsHandleCreated || (value && _parent?.Created == true)) 10494if (!DesiredVisibility && !value && IsHandleCreated) 10511if (IsHandleCreated) 10842if (IsHandleCreated) 10858if (IsHandleCreated) 10994if (!Disposing && IsHandleCreated) 11021if (!IsHandleCreated || !control.IsHandleCreated || control._parent != this) 11030if (child.IsHandleCreated && child._parent == this) 11078if (!IsHandleCreated) 12251if (IsHandleCreated 12825IsHandleCreated && Visible && (ToolStripControlHost is not IKeyboardToolTip toolTip || toolTip.CanShowToolTipsNow()); 12877if (control?.IsHandleCreated ?? false)
System\Windows\Forms\Control.Ime.cs (1)
88if (IsHandleCreated)
System\Windows\Forms\Control_InvokeAsync.cs (4)
54if (!IsHandleCreated) 179if (!IsHandleCreated) 280if (!IsHandleCreated) 385if (!IsHandleCreated)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
326if (IsHandleCreated) 853if (IsHandleCreated) 1135if (IsHandleCreated && InvokeRequired)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
76(control is not null && control.IsHandleCreated ? control.DeviceDpi : ScaleHelper.InitialSystemDpi)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
206if (IsHandleCreated) 496if (IsHandleCreated)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
163if (IsHandleCreated) 347if (IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.ChildAccessibleObject.cs (2)
16Debug.Assert(owner.IsHandleCreated, "ComboBox's handle hasn't been created"); 18if (owner.IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
101if (!owner.IsHandleCreated || owner.DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
54if (!_owner.IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
40if (!_owningComboBox.IsHandleCreated ||
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (3)
63if (!_owningComboBox.IsHandleCreated || 142if (!_owningComboBox.IsHandleCreated) 155if (!_owningComboBox.IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
78if (!_owner.IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (3)
173if (!_owningComboBox.IsHandleCreated || !_owningComboBox.Enabled) 197if (!_owningComboBox.IsHandleCreated) 208if (!_owningComboBox.IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (22)
35Debug.Assert(_owningComboBox.IsHandleCreated); 41=> _owningComboBox.IsHandleCreated 55=> _owningComboBox.IsHandleCreated 62=> _owningComboBox.IsHandleCreated && WindowExStyle.HasFlag(WINDOW_EX_STYLE.WS_EX_RTLREADING); 70if (!_owningComboBox.IsHandleCreated) 80=> _owningComboBox.IsHandleCreated 85=> !_owningComboBox.IsHandleCreated 92=> _owningComboBox.IsHandleCreated 99=> _owningComboBox.IsHandleCreated 104=> _owningComboBox.IsHandleCreated 109=> _owningComboBox.IsHandleCreated 114=> _owningComboBox.IsHandleCreated 127if (!_owningComboBox.IsHandleCreated) 146=> _owningComboBox.IsHandleCreated 151=> _owningComboBox.IsHandleCreated 156=> _owningComboBox.IsHandleCreated 163if (!_owningComboBox.IsHandleCreated || startCharIndex < 0 || startCharIndex >= text.Length) 211if (!_owningComboBox.IsHandleCreated) 240if (!_owningComboBox.IsHandleCreated || IsDegenerate(_owningComboBox.ClientRectangle)) 272if (!_owningComboBox.IsHandleCreated) 335if (!_owningComboBox.IsHandleCreated) 382if (!_owningComboBox.IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (28)
444if (IsHandleCreated) 486get => IsHandleCreated && (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETDROPPEDSTATE) != 0; 489if (!IsHandleCreated) 587!IsHandleCreated) 593Debug.Assert(IsHandleCreated, "Handle should be created at this point"); 701if (IsHandleCreated) 872get => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETCURSEL) : _selectedIndex; 883if (IsHandleCreated) 894if (IsHandleCreated) 959if (IsHandleCreated && _childEdit is not null) 1071if (IsHandleCreated) 1111if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 1963if (IsHandleCreated) 2111if (!IsHandleCreated) 2157Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 2167Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 2208Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 2224Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 2408if (!IsHandleCreated) 2573if (!IsHandleCreated) 2794if (IsHandleCreated) 2816if (DropDownStyle == ComboBoxStyle.Simple && IsHandleCreated) 2865if (!IsHandleCreated) 2997if (IsHandleCreated) 3094if (!IsHandleCreated || _childEdit is null) 3111if (!_fromHandleCreate && recreate && IsHandleCreated) 3273if (IsHandleCreated) 3365if (!IsHandleCreated)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (7)
144if (_owner.IsHandleCreated) 152if (_owner.IsHandleCreated) 241if (_owner.IsHandleCreated) 326if (_owner.IsHandleCreated) 364if (_owner.IsHandleCreated) 372if (!_owner.IsHandleCreated) 414if (!_owner.IsHandleCreated)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (8)
2372if (!IsHandleCreated) 2420if (!IsHandleCreated) 2464if (!IsHandleCreated) 2544if (!IsHandleCreated) 2976if (_layout._dirty && IsHandleCreated) 3783if (IsHandleCreated && !DesignMode) 3835if (IsHandleCreated && !DesignMode) 3923if (IsHandleCreated && !DesignMode)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (26)
302if (!IsHandleCreated) 432if (!IsHandleCreated) 1741if (!IsHandleCreated) 1807if (!IsHandleCreated) 1871if (!IsHandleCreated) 2000if (!IsHandleCreated) 2162if (!IsHandleCreated) 2279if (!IsHandleCreated) 2393if (!IsHandleCreated) 9789if (IsHandleCreated) 9814if (IsHandleCreated) 9826if (IsHandleCreated) 9837if (IsHandleCreated) 9858if (IsHandleCreated) 9871if (IsHandleCreated) 14479if (e.Column.Visible && IsHandleCreated) 14977if (IsHandleCreated && Enabled) 19709if (IsHandleCreated) 19792if (!IsHandleCreated) 27015if (IsHandleCreated 28862if (IsHandleCreated) 28876if (IsHandleCreated) 28931if (IsHandleCreated && _layout.RowHeadersVisible) 28947if (IsHandleCreated && _layout.RowHeadersVisible) 28980if (IsHandleCreated && (rowIndex == -1 || rowVisible)) 29149if (!IsHandleCreated)
System\Windows\Forms\Controls\DataGridView\DataGridView.ToolTip.cs (1)
23if (_dataGridView.DesignMode || !_dataGridView.IsHandleCreated)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
35if (_ownerDataGridView.IsHandleCreated && _ownerDataGridView.ColumnHeadersVisible)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject.cs (1)
39if (dataGridView?.IsHandleCreated != true)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (9)
149if (_owner.DataGridView?.IsHandleCreated != true) 269if (dataGridViewCell is DataGridViewHeaderCell || dataGridView?.IsHandleCreated != true) 319|| !_owner.DataGridView.IsHandleCreated 442if (_owner.DataGridView?.IsHandleCreated != true || _owner.OwningColumn is null || _owner.OwningRow is null) 571if (_owner.DataGridView?.IsHandleCreated != true) 611if (_owner?.DataGridView?.IsHandleCreated != true) 645if (_owner.DataGridView?.IsHandleCreated != true || _owner.OwningColumn is null || _owner.OwningRow is null) 718if (_owner is { OwningRow.HasHeaderCell: true, DataGridView: { IsHandleCreated: true, RowHeadersVisible: true } }) 728if (_owner is { OwningColumn.HasHeaderCell: true, DataGridView: { IsHandleCreated: true, ColumnHeadersVisible: true } })
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
95if (dataGridView?.IsHandleCreated != true)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (3)
32: (Owner.DataGridView?.IsHandleCreated == true) ? GetAccessibleObjectBounds(Parent) : Rectangle.Empty; 118if (dataGridView?.IsHandleCreated != true || dataGridViewCell.OwningColumn is null) 213if (dataGridView?.IsHandleCreated != true)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellAccessibleObject.cs (1)
46&& comboBox.IsHandleCreated)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.DataGridViewImageCellAccessibleObject.cs (1)
46dataGridView.IsHandleCreated &&
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.cs (1)
37if (dataGridView?.IsHandleCreated != true)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (3)
48if (_owningDataGridViewRow.DataGridView is null || !_owningDataGridViewRow.DataGridView.IsHandleCreated) 195if (_owningDataGridViewRow.DataGridView is not null && _owningDataGridViewRow.DataGridView.IsHandleCreated) 405if (dataGridView is null || !dataGridView.IsHandleCreated)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (2)
125if (Owner.DataGridView?.IsHandleCreated == true && 218if (dataGridView?.IsHandleCreated != true)
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (3)
27if (Owner.DataGridView is null || !Owner.DataGridView.IsHandleCreated) 141if (Owner?.DataGridView?.IsHandleCreated is true) 198if (Owner.DataGridView?.IsHandleCreated != true)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (10)
338if (ShowCheckBox && IsHandleCreated) 354if (ShowCheckBox && IsHandleCreated) 441if (IsHandleCreated) 890if (IsHandleCreated) 1120if (IsHandleCreated && Application.RenderWithVisualStyles) 1258if (IsHandleCreated) 1276if (IsHandleCreated) 1287if (IsHandleCreated) 1315if (IsHandleCreated) 1342if (IsHandleCreated)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
250if (suspendRedraw && IsHandleCreated) 259if (suspendRedraw && IsHandleCreated)
System\Windows\Forms\Controls\Labels\Label.cs (4)
792if (IsHandleCreated) 1097if (!IsHandleCreated) 1130if (IsHandleCreated) 1183if (IsHandleCreated && InvokeRequired)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
296if (IsHandleCreated) 697if (IsHandleCreated) 1638if (!IsHandleCreated)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (2)
31if (!_owningLinkLabel.IsHandleCreated || _owningLink.Owner is null) 70if (!_owningLinkLabel.IsHandleCreated)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (3)
24if (!_owningCheckedListBox.IsHandleCreated) 37if (!_owningCheckedListBox.IsHandleCreated) 69if (!_owningCheckedListBox.IsHandleCreated)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
389if (IsHandleCreated) 752if (IsHandleCreated) 761if (IsHandleCreated)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (27)
255else if (IsHandleCreated) 421internal int FocusedIndex => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETCARETINDEX) : -1; 593if (_drawMode == DrawMode.OwnerDrawFixed && IsHandleCreated) 764if (IsHandleCreated) 835if (current == SelectionMode.One && IsHandleCreated) 871if (IsHandleCreated) 894if (IsHandleCreated) 1013if (IsHandleCreated) 1115get => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTOPINDEX) : _topIndex; 1118if (IsHandleCreated) 1331if (IsHandleCreated) 1421if (IsHandleCreated) 1476if (IsHandleCreated) 1531Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 1555Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 1586Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 1612Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); 1632Debug.Assert(IsHandleCreated, "Should only call Native methods after the handle has been created"); 1652Debug.Assert(IsHandleCreated, "Should only call native methods if handle is created"); 1706if (IsHandleCreated && IsAccessibilityObjectCreated) 1867if (IsHandleCreated && IsAccessibilityObjectCreated) 1975if (IsHandleCreated) 2114if (IsHandleCreated) 2153if (IsHandleCreated) 2187if (IsHandleCreated) 2247if (!_multiColumn && _horizontalScrollbar && IsHandleCreated) 2305if (IsHandleCreated && UseCustomTabOffsets && CustomTabOffsets is not null)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (7)
57if (!_owningListBox.IsHandleCreated) 115if (_owningListBox.IsHandleCreated) 123if (_owningListBox.IsHandleCreated) 185if (!_owningListBox.IsHandleCreated 198if (!_owningListBox.IsHandleCreated) 245if (!_owningListBox.IsHandleCreated) 259if (!_owningListBox.IsHandleCreated)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (6)
130if (_owner.IsHandleCreated) 141if (_owner.IsHandleCreated) 250if (_owner.IsHandleCreated) 340if (_owner.IsHandleCreated) 402if (_owner.IsHandleCreated) 421if (_owner.IsHandleCreated)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (2)
36if (_owner.IsHandleCreated) 127if (_owner.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
215if (ListView is not null && ListView.IsHandleCreated) 252if (ListView is not null && ListView.IsHandleCreated) 392if (ListView is not null && ListView.IsHandleCreated && !ListView.Disposing && ListView.View == View.Details) 479if (ListView is not null && ListView.IsHandleCreated && !ListView.Disposing)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (4)
322if (_owner.IsHandleCreated) 332if (_owner.IsHandleCreated) 505if (_owner.IsHandleCreated && _owner.View != View.Tile) 559if (_owner.IsHandleCreated && _owner.View == View.Tile)
System\Windows\Forms\Controls\ListView\ListView.cs (80)
352if (IsHandleCreated) 389if (IsHandleCreated && BackgroundImage is not null) 517if ((!value && StateImageList is not null && IsHandleCreated) || 518(!value && Alignment == ListViewAlignment.Left && IsHandleCreated) || 519(value && View == View.List && IsHandleCreated) || 520(value && (View == View.SmallIcon || View == View.LargeIcon) && IsHandleCreated)) 554if (IsHandleCreated && _imageListState is not null) 637if (IsHandleCreated) 784get => IsHandleCreated ? _focusedGroup : null; 787if (IsHandleCreated && value is not null) 808if (IsHandleCreated) 826if (IsHandleCreated && value is not null) 839if (IsHandleCreated) 949if (!IsHandleCreated) 1213if (!IsHandleCreated) 1424if (IsHandleCreated) 1452if (!IsHandleCreated) 1560if (IsHandleCreated) 1572if (IsHandleCreated && _imageListState is not null && CheckBoxes) 1586if (!IsHandleCreated) 1650if (!IsHandleCreated) 1678if (!IsHandleCreated) 1719if (!IsHandleCreated) 1744if (!IsHandleCreated) 1833if (IsHandleCreated && Application.ComCtlSupportsVisualStyles) 1849if (IsHandleCreated && _viewStyle == View.Details) 1880bool keepTopItem = IsHandleCreated && VirtualMode && View == View.Details && !DesignMode; 1889if (IsHandleCreated && VirtualMode && !DesignMode) 2182if (!IsHandleCreated) 2258if (IsHandleCreated) 2333if (!IsHandleCreated) 2343if (!IsHandleCreated) 3175if (IsHandleCreated && GroupsEnabled) 3194if (IsHandleCreated) 3281if (!IsHandleCreated) 3364if (CheckBoxes && IsHandleCreated) 3409if (IsHandleCreated && !ListViewHandleDestroyed) 3567Debug.Assert(IsHandleCreated, "How did we add items without a handle?"); 3684if (VirtualMode || sender is null || sender != _imageListGroup || !IsHandleCreated) 3699if (!IsHandleCreated) 3792if (_viewStyle == View.Details && IsHandleCreated) 3829int idx = IsHandleCreated && View != View.Tile ? InsertColumnNative(index, ch) : index; 3865if (ch.ActualImageIndex_Internal != -1 && IsHandleCreated && View != View.Tile) 3896if (IsHandleCreated && View == View.Tile) 3900else if (IsHandleCreated && refreshSubItems) 3985Debug.Assert(IsHandleCreated, "InsertGroupNative precondition: list-view handle must be created"); 4004if (IsHandleCreated && Items.Count == 0 && View == View.SmallIcon && Application.ComCtlSupportsVisualStyles) 4059if (!IsHandleCreated) 4068if (IsHandleCreated) 4100Debug.Assert(IsHandleCreated, "InsertItemsNative precondition: list-view handle must be created"); 4299if (!IsHandleCreated) 4312if (VirtualMode || sender is null || sender != _imageListLarge || !IsHandleCreated) 4328if (IsHandleCreated) 4345if (IsHandleCreated) 4509if (!VirtualMode && IsHandleCreated && AutoArrange) 4762if (IsHandleCreated && 4839if (IsHandleCreated) 4848if (View == View.Details && !Scrollable && IsHandleCreated) 4923if (IsHandleCreated) 5037if (IsHandleCreated) 5146Debug.Assert(IsHandleCreated, "RemoveGroupNative precondition: list-view handle must be created"); 5238if (!IsHandleCreated) 5338if (IsHandleCreated) 5343if (IsHandleCreated && 5361if (IsHandleCreated) 5377if (IsHandleCreated && !Disposing) 5431if (!IsHandleCreated) 5451if (!IsHandleCreated) 5476Debug.Assert(IsHandleCreated, "How did we add items without a handle?"); 5487if (!IsHandleCreated) 5513Debug.Assert(IsHandleCreated, "SetItemText with no handle"); 5557if (!IsHandleCreated) 5579if (IsHandleCreated && _listItemSorter is not null) 5590if (!IsHandleCreated) 5632if (!VirtualMode && IsHandleCreated && AutoArrange && (View == View.LargeIcon || View == View.SmallIcon)) 5660if (!IsHandleCreated) 5722if (IsHandleCreated) 5744Debug.Assert(IsHandleCreated, "UpdateGroupNative precondition: list-view handle must be created"); 5850if (IsHandleCreated && Application.ComCtlSupportsVisualStyles && !VirtualMode) 6453if (IsHandleCreated && StateImageList is not null)
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (11)
84if (_owner.IsHandleCreated && !_owner.ListViewHandleDestroyed) 114if (_owner.IsHandleCreated && !_owner.CheckBoxes && valueChecked) 144if (_owner.IsHandleCreated && !_owner.CheckBoxes) 161if (_owner.IsHandleCreated && !_owner.CheckBoxes) 193if (_owner.IsHandleCreated && !_owner.ListViewHandleDestroyed) 220if (_owner.IsHandleCreated && !_owner.ListViewHandleDestroyed) 294if (_owner.IsHandleCreated && !_owner.CheckBoxes) 310if (_owner.IsHandleCreated && !_owner.ListViewHandleDestroyed) 351if (_owner.IsHandleCreated && !_owner.CheckBoxes && item.Checked) 407if (_owner.IsHandleCreated && !_owner.CheckBoxes && this[index].Checked) 418if (_owner.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (6)
30if (_owner.IsHandleCreated) 53if (_owner.IsHandleCreated) 100if (_owner.IsHandleCreated) 262if (_owner.IsHandleCreated) 288if (_owner.IsHandleCreated) 322if (_owner.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (3)
30if (_owner.IsHandleCreated) 92if (_owner.IsHandleCreated) 123if (_owner.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
464if (ListView is not null && ListView.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (7)
38if (!_owningListView.IsHandleCreated || !_owningListView.GroupsDisplayed || IsEmpty) 154if (!_owningListView.IsHandleCreated || !_owningListView.GroupsDisplayed) 222if (!_owningListView.IsHandleCreated || !_owningListView.GroupsDisplayed || IsEmpty) 251if (!_owningListView.IsHandleCreated || !_owningListView.GroupsDisplayed || index < 0) 267if (child is null || !_owningListView.IsHandleCreated || !_owningListView.GroupsDisplayed) 286if (!_owningListView.IsHandleCreated || !_owningListView.GroupsDisplayed) 304if (!_owningListView.IsHandleCreated || !_owningListView.GroupsDisplayed || IsEmpty)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (5)
125if (_listView.IsHandleCreated) 187if (_listView.IsHandleCreated) 250if (_listView.IsHandleCreated) 267Debug.Assert(_listView.IsHandleCreated, "MoveGroupItems pre-condition: listView handle must be created"); 288if (_listView.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
125if (item.ListView is not null && item.ListView.IsHandleCreated && !item.ListView.InsertingItemsNatively)
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (4)
41if (_listView.IsHandleCreated) 81if (_listView.IsHandleCreated) 103if (_listView.IsHandleCreated) 128Debug.Assert(_listView.IsHandleCreated, "ApplySavedState Precondition: List-view handle must be created");
System\Windows\Forms\Controls\ListView\ListViewItem.cs (21)
331if (_listView is not null && _listView.IsHandleCreated) 362if (_listView is not null && _listView.IsHandleCreated) 372if (_listView is not null && _listView.IsHandleCreated) 487if (_listView is not null && _listView.IsHandleCreated) 513if (_listView is not null && _listView.IsHandleCreated) 559if (_listView is not null && _listView.IsHandleCreated) 630if (_listView is not null && _listView.IsHandleCreated) 642if (_listView is not null && _listView.IsHandleCreated) 685if (_listView is not null && _listView.IsHandleCreated) 694if (_listView is not null && _listView.IsHandleCreated) 704if (_listView is not null && _listView.IsHandleCreated) 725if (_listView is not null && _listView.IsHandleCreated) 738if (_listView is not null && _listView.IsHandleCreated) 840if (_listView is not null && _listView.IsHandleCreated) 947if (_listView is not null && _listView.IsHandleCreated) 968if (_listView is not null && _listView.IsHandleCreated) 978if (_listView is not null && _listView.IsHandleCreated && _listView.View == View.Details) 1063Debug.Assert(_listView!.IsHandleCreated, "Should only invoke UpdateStateToListView when handle is created."); 1113if (_listView is not null && _listView.IsHandleCreated && displayIndex != -1) 1312if (_listView is not null && _listView.IsHandleCreated) 1322if (_listView is null || !_listView.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (3)
40=> !_owningListView.IsHandleCreated || OwningGroup?.CollapsedState == ListViewGroupCollapsedState.Collapsed 268if (_owningListView.IsHandleCreated) 286if (!_owningListView.IsHandleCreated)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (2)
78return !_owningListView.IsHandleCreated || !_owningListView.SupportsListViewSubItems 178=> _owningListView.IsHandleCreated
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (1)
18=> !_owningListView.IsHandleCreated
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (2)
71if (!_owningListView.IsHandleCreated || !_owningListView.SupportsListViewSubItems) 125=> _owningListView.IsHandleCreated
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (2)
73if (!_owningListView.IsHandleCreated) 99=> _owningListView.IsHandleCreated && accessibleChildIndex == ImageAccessibleObjectIndex && HasImage
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
99if (_owner?._listView is not null && _owner._listView.IsHandleCreated)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
167if (IsHandleCreated) 183if (IsHandleCreated)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (15)
388if (IsHandleCreated) 482if (IsHandleCreated) 616if (IsHandleCreated) 795if (IsHandleCreated) 859if (IsHandleCreated) 1233if (IsHandleCreated) 1349if (!IsHandleCreated) 1686if (IsHandleCreated) 1736if (IsHandleCreated) 1882if (IsHandleCreated) 1952if (IsHandleCreated && _mcCurView == MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_MONTH) 1970if (!IsHandleCreated) 1998if (IsHandleCreated) 2080if (IsHandleCreated) 2098if (IsHandleCreated)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
377=> this.TryGetOwnerAs(out MonthCalendar? owner) && owner.IsHandleCreated
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1053if (InvokeRequired && IsHandleCreated)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (10)
133if (IsHandleCreated) 258if (IsHandleCreated && _style == ProgressBarStyle.Marquee) 300if (IsHandleCreated) 338if (IsHandleCreated) 350if (IsHandleCreated) 359if (IsHandleCreated) 428if (IsHandleCreated) 606if (IsHandleCreated) 690if (IsHandleCreated) 704if (IsHandleCreated)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
592if (value && IsHandleCreated && Visible) 2583if (!IsHandleCreated || !Visible) 2854if (IsHandleCreated && Visible) 3203if (Visible && IsHandleCreated)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAccessibleObject.cs (3)
30if (owningDropDownButton.IsHandleCreated) 38if (_owningDropDownButton.IsHandleCreated) 89if (!_owningDropDownButton.IsHandleCreated)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (5)
29=> PropertyGridView is not null && PropertyGridView.IsHandleCreated && this.TryGetOwnerAs(out GridEntry? owner) 83if (PropertyGridView is null || !PropertyGridView.IsHandleCreated || !this.TryGetOwnerAs(out GridEntry? owner)) 235if (PropertyGridView is not null && PropertyGridView.IsHandleCreated && this.TryGetOwnerAs(out GridEntry? owner)) 283if (PropertyGridView is null || !PropertyGridView.IsHandleCreated || !this.TryGetOwnerAs(out GridEntry? owner)) 406if (PropertyGridView is null || !PropertyGridView.IsHandleCreated)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (6)
24if (controls[i].IsHandleCreated) 36if (IsHandleCreated || !string.IsNullOrEmpty(value)) 49if (IsHandleCreated) 103if (IsHandleCreated && sender is not null) 114if (_controls[i].IsHandleCreated) 123if (IsHandleCreated && control is not null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (3)
84if (OwnerPropertyGrid.IsHandleCreated && !IsHandleCreated) 227if (IsHandleCreated && _needUpdateUIWithFont)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (1)
284|| !propertyGridView.IsHandleCreated
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
363&& _editTextBox.IsHandleCreated 848if (IsHandleCreated && Visible && Enabled) 1357internal bool IsEditTextBoxCreated => _editTextBox is not null && _editTextBox.IsHandleCreated; 2336if (DropDownListBox.IsHandleCreated) 5153if (!IsHandleCreated || !_flags.HasFlag(Flags.NeedUpdateUIBasedOnFont))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObject.cs (1)
57private bool ExistsInAccessibleTree => _owningDropDownHolder.IsHandleCreated && _owningDropDownHolder.Visible;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
34if (target.IsHandleCreated
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStrip.PropertyGridToolStripAccessibleObject.cs (1)
31&& target.IsHandleCreated
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObject.cs (1)
42if (_owningPropertyGrid is null || !_owningPropertyGrid.IsHandleCreated)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (26)
167if (IsHandleCreated) 229if (IsHandleCreated && SelectionBullet) 250public bool CanRedo => IsHandleCreated && (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_CANREDO) != 0; 341if (IsHandleCreated) 374if (IsHandleCreated) 394if (!IsHandleCreated || PInvokeCore.GetWindowTextLength(this) <= 0) 464get => IsHandleCreated 472if (IsHandleCreated) 575else if (IsHandleCreated) 595if (IsHandleCreated) 882if (IsHandleCreated) 907if (IsHandleCreated) 1052if (!IsHandleCreated) 1291if (IsHandleCreated) 1321if (!IsHandleCreated && _textRtf is null) 1344if (!IsHandleCreated) 1450if (IsHandleCreated) 2097if (!IsHandleCreated) 2135if (IsHandleCreated) 2338if (IsHandleCreated) 2675if (IsHandleCreated) 2688if (IsHandleCreated) 3016Debug.Assert(IsHandleCreated); 3081if (!IsHandleCreated) 3102if (IsHandleCreated) 3201if (IsHandleCreated)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (1)
290=> e.Effect != DragDropEffects.None && e.DropImageType > DropImageType.Invalid && _owner.IsHandleCreated;
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (2)
31if (_owner.IsHandleCreated) 46if (_owner.IsHandleCreated)
System\Windows\Forms\Controls\TabControl\TabControl.cs (19)
376if (!IsHandleCreated) 382if (IsHandleCreated) 439if (IsHandleCreated) 476if (IsHandleCreated) 510if (IsHandleCreated) 600if (IsHandleCreated) 662get => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.TCM_GETCURSEL) : _selectedIndex; 669if (IsHandleCreated) 940if (IsHandleCreated && ShouldSerializeItemSize()) 1117if (!IsHandleCreated) 1140if (IsHandleCreated) 1167index = IsHandleCreated ? SendMessage(PInvoke.TCM_INSERTITEMW, index, tabPage) : index; 1226if (!IsHandleCreated) 1556if (IsHandleCreated) 1591if (IsHandleCreated) 1609if (IsHandleCreated) 1658if (IsHandleCreated) 1664if (DesignMode && IsHandleCreated) 1825if (IsHandleCreated)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
320if (value.IsHandleCreated)
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
734if (parent is TabControl && parent.IsHandleCreated)
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (3)
27if (OwningTabControl is null || !OwningTabControl.IsHandleCreated || SystemIAccessibleInternal is null) 83if (OwningTabControl is not null && OwningTabControl.IsHandleCreated && OwningTabControl.Enabled) 93if (OwningTabControl is null || !OwningTabControl.IsHandleCreated)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (4)
1096if (IsHandleCreated) 1792if (Application.RenderWithVisualStyles && IsHandleCreated && BorderStyle == BorderStyle.Fixed3D) 2035if (IsHandleCreated && IsAccessibilityObjectCreated && ContainsNavigationKeyCode(e.KeyCode)) 2076if (IsHandleCreated && IsAccessibilityObjectCreated)
System\Windows\Forms\Controls\TextBox\TextBox.cs (10)
333if (!IsHandleCreated) 345if (IsHandleCreated) 544if (Application.RenderWithVisualStyles && IsHandleCreated && BorderStyle == BorderStyle.Fixed3D) 592if (!IsHandleCreated) 635if (IsHandleCreated && IsAccessibilityObjectCreated && ContainsNavigationKeyCode(e.KeyCode)) 645if (IsHandleCreated && IsAccessibilityObjectCreated) 730if (IsHandleCreated && AutoCompleteCustomSource is not null) 755if (IsHandleCreated) 789if ((AutoCompleteMode != AutoCompleteMode.None || force) && IsHandleCreated) 836if (IsHandleCreated)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (16)
391public bool CanUndo => IsHandleCreated && (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_CANUNDO) != 0; 665if (IsHandleCreated) 687if (IsHandleCreated) 868if (!IsHandleCreated) 935if (IsHandleCreated) 994if (!IsHandleCreated) 1085if (IsHandleCreated) 1099=> IsHandleCreated ? PInvokeCore.GetWindowTextLength(this) : Text.Length; 1138if (IsHandleCreated) 1276if (IsHandleCreated) 1325return IsHandleCreated ? TextLength + 1 : TextLength; 1374if (!IsHandleCreated) 1634if (!IsHandleCreated) 1745if (IsHandleCreated) 1857Debug.Assert(IsHandleCreated, "Don't call this method until the handle is created."); 1989if (IsHandleCreated)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (23)
32if (Owner is null || !Owner.IsHandleCreated) 63if (Owner is null || !Owner.IsHandleCreated) 100if (Owner is null || !Owner.IsHandleCreated) 165if (Owner is null || !Owner.IsHandleCreated) 204=> Owner is not null && Owner.IsHandleCreated 209=> Owner is not null && Owner.IsHandleCreated 216=> Owner is not null && Owner.IsHandleCreated && WindowExStyle.HasFlag(WINDOW_EX_STYLE.WS_EX_RTLREADING); 224if (Owner is null || !Owner.IsHandleCreated) 234=> Owner is not null && Owner.IsHandleCreated 242if (Owner is null || !Owner.IsHandleCreated) 264=> Owner is not null && Owner.IsHandleCreated 269=> Owner is not null && Owner.IsHandleCreated 285=> Owner is not null && Owner.IsHandleCreated 290=> Owner is not null && Owner.IsHandleCreated 295=> Owner is not null && Owner.IsHandleCreated 300=> Owner is not null && Owner.IsHandleCreated 305=> Owner is not null && Owner.IsHandleCreated 312if (Owner is null || !Owner.IsHandleCreated || startCharIndex < 0 || startCharIndex >= text.Length) 358if (Owner is null || !Owner.IsHandleCreated || IsDegenerate(Owner.ClientRectangle)) 401=> Owner is not null && Owner.IsHandleCreated 410if (Owner is null || !Owner.IsHandleCreated) 437Debug.Assert(Owner.IsHandleCreated); 453Debug.Assert(Owner.IsHandleCreated);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
164if (SizingGrip && IsHandleCreated)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
870if (!IsHandleCreated) 1243using (LayoutTransaction.CreateTransactionIf(IsHandleCreated, this, this, PropertyNames.LayoutStyle)) 1833if (IsHandleCreated && item is not null) 1955if (IsHandleCreated) 1992|| !OverflowButton.DropDown.IsHandleCreated; 2525if (IsHandleCreated)
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
394if (IsHandleCreated)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
322if (IsHandleCreated && !DesignMode) 1012if (!IsHandleCreated) 1530if (!IsHandleCreated) 1620else if (IsHandleCreated && PInvoke.IsWindowEnabled(this)) 1795if (_state[s_stateLayered] && IsHandleCreated && TopLevel)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (2)
163if (!accept || !_owner.IsHandleCreated) 224if (dragEnterArgs.DropImageType > DropImageType.Invalid && _owner is ToolStrip toolStrip && toolStrip.IsHandleCreated)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
290if (ParentInternal is not null && ParentInternal.IsHandleCreated) 2677if (parent.IsHandleCreated && parent.InvokeRequired)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
448if (root is not null && root.IsHandleCreated && root.SupportsUiaProviders)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
319if (_owner.IsHandleCreated)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
579if (toolStripPanel.IsHandleCreated && toolStripPanel.Visible &&
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
807if (toolStripToDrag.Site is not null && toolStripToDrag.Site.DesignMode && IsHandleCreated)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (11)
291if (IsHandleCreated) 389if (IsHandleCreated) 433if (!IsHandleCreated) 494if (IsHandleCreated) 573if (!IsHandleCreated) 694if (!IsHandleCreated) 816if (IsHandleCreated) 856if (!IsHandleCreated) 1059if (IsHandleCreated && !recreateHandle) 1099if (IsHandleCreated) 1161private bool ShouldRecreateHandle() => IsHandleCreated && _autoDrawTicks != ShouldAutoDrawTicks();
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (1)
35|| !owner.IsHandleCreated
System\Windows\Forms\Controls\TreeView\TreeNode.cs (7)
300if (tv is null || !tv.IsHandleCreated || tv.IsDisposed) 1405if (tv is null || !tv.IsHandleCreated) 1670if (tv is null || !tv.IsHandleCreated) 1809if (_treeView is not null && _treeView.IsHandleCreated) 1818if (tv is null || !tv.IsHandleCreated || tv.IsDisposed) 1982if (notify && tv.IsHandleCreated) 2022Debug.Assert(tv.IsHandleCreated, "nonexistent handle");
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (2)
27if (!_owningTreeView.IsHandleCreated || !_owningTreeNode.IsVisible) 233if (!_owningTreeView.IsHandleCreated || !_owningTreeView.Enabled)
System\Windows\Forms\Controls\TreeView\TreeView.cs (38)
199if (IsHandleCreated) 282if (IsHandleCreated) 313if (IsHandleCreated) 376if (ShowNodeToolTips && IsHandleCreated && !DesignMode) 383if (CheckBoxes && IsHandleCreated) 444if (IsHandleCreated) 466if (IsHandleCreated) 489if (IsHandleCreated) 513if (IsHandleCreated) 564if (IsHandleCreated) 597if (IsHandleCreated) 626if (IsHandleCreated) 700if (IsHandleCreated) 739else if (IsHandleCreated) 754if (IsHandleCreated) 777if (IsHandleCreated) 799if (IsHandleCreated) 838if (IsHandleCreated) 856if (IsHandleCreated) 869if (IsHandleCreated) 1035if (IsHandleCreated) 1069if (IsHandleCreated) 1088if (IsHandleCreated) 1109if (IsHandleCreated && (value is null || value.TreeView == this)) 1142if (IsHandleCreated) 1187if (IsHandleCreated) 1210if (IsHandleCreated) 1301if (IsHandleCreated) 1311if (IsHandleCreated && (value is null || value.TreeView == this)) 1339public int VisibleCount => IsHandleCreated ? (int)PInvokeCore.SendMessage(this, PInvoke.TVM_GETVISIBLECOUNT) : 0; 1597if (IsHandleCreated) 1689if (IsHandleCreated) 1712if ((sender is not null) && (sender == _imageList) && IsHandleCreated) 1742if (IsHandleCreated) 1756if (sender is null || sender != _stateImageList || !IsHandleCreated) 1842if (!IsHandleCreated) 2610if (IsHandleCreated && CheckBoxes) 2627if (!IsHandleCreated)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
900if (child is not null && IsHandleCreated)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (2)
51if (IsHandleCreated && IsAccessibilityObjectCreated) 107if (IsHandleCreated && IsAccessibilityObjectCreated && ContainsNavigationKeyCode(e.KeyCode))
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (3)
466if ((Visible && parent is not null && parent.Visible) || IsHandleCreated) 581internal IntPtr GetHandleNoCreate() => IsHandleCreated ? Handle : IntPtr.Zero; 1148if (containerControl is null && IsHandleCreated)
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
34=> _control.ParentInternal is not null && _control.ParentInternal.IsHandleCreated
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
86if (!_parent.IsHandleCreated)
System\Windows\Forms\Form.cs (40)
312if (_ctlClient is not null && _ctlClient.IsHandleCreated) 663if (_formState[s_formStateSetClientSize] == 1 && !IsHandleCreated) 760if (IsHandleCreated && WindowStyle.HasFlag(WINDOW_STYLE.WS_DISABLED)) 1261if (IsHandleCreated) 1356if (IsHandleCreated) 1502if (ParentInternal.IsHandleCreated && IsMdiChild && IsHandleCreated) 1774if (IsHandleCreated) 1817if (IsHandleCreated) 2063if (IsHandleCreated && TopLevel) 2190if (IsHandleCreated) 2284if (IsHandleCreated) 2363if (IsHandleCreated) 2423if (IsHandleCreated) 2484if (IsHandleCreated) 2556if (IsHandleCreated && Visible) 2822if (Visible && IsHandleCreated) 3022if (IsHandleCreated) 3068|| !IsHandleCreated) 3248if (IsHandleCreated) 3352if (IsMdiChild && MdiParentInternal.IsHandleCreated) 3355if (mdiClient is not null && !mdiClient.IsHandleCreated) 3487if (_ctlClient is not null && _ctlClient.IsHandleCreated && _ctlClient.ParentInternal == this) 3758Debug.Assert(IsHandleCreated, "Attempt to set focus to a form that has not yet created its handle."); 3828return GetState(States.Visible) && IsHandleCreated; 4321if (IsHandleCreated) 4388if (IsHandleCreated 4920if (IsHandleCreated) 4966if (TopLevel && IsHandleCreated) 5360if (IsHandleCreated) 5794if (IsHandleCreated) 6113if (IsHandleCreated && TopLevel) 6139if ((_formState[s_formStateLayered] != 0) && IsHandleCreated && TopLevel) 6168if (!IsHandleCreated) 6173if (_ctlClient is null || !_ctlClient.IsHandleCreated) 6434if (IsHandleCreated) 6503if (!IsHandleCreated) 6713if (mdiChild.IsHandleCreated) 6793if (mdiChild.IsHandleCreated) 6940Debug.Assert(IsHandleCreated, "how is handle 0?");
System\Windows\Forms\Internal\OwnedObjectExtensions.cs (1)
36if (!ownerAs.IsHandleCreated)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
856if (AutoScaleMode != AutoScaleMode.None && IsHandleCreated) 1407if (IsHandleCreated)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
448if (IsHandleCreated) 1551if (IsHandleCreated)
System\Windows\Forms\MDI\MDIClient.cs (1)
218if (!IsHandleCreated
System\Windows\Forms\OLE\DropTarget.cs (2)
25if (_owner is Control control && control.IsHandleCreated) 31&& toolStrip.IsHandleCreated)
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.BackgroundThread.cs (2)
34if (_dialog is { } dialog && dialog.IsHandleCreated) 47if (_dialog is { } dialog && dialog.IsHandleCreated)
System\Windows\Forms\Printing\PrintPreviewControl.cs (5)
309if (!IsHandleCreated) 534if (!IsHandleCreated) 549if (!IsHandleCreated) 772if (!IsHandleCreated) 784if (!IsHandleCreated)
System\Windows\Forms\Scrolling\ScrollableControl.cs (4)
783if (IsHandleCreated && (xDelta != 0 || yDelta != 0)) 785Debug.Assert(IsHandleCreated, "Handle is not created"); 804if (ctl is not null && ctl.IsHandleCreated) 1141if (!IsHandleCreated)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
592if (!IsHandleCreated || !Enabled)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (2)
25if (!OwningScrollBar.IsHandleCreated || !IsDisplayed) 91if (OwningScrollBar.IsHandleCreated && IsDisplayed)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstLineButtonAccessibleObject.cs (1)
18if (!OwningScrollBar.IsHandleCreated)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstPageButtonAccessibleObject.cs (2)
17=> OwningScrollBar.IsHandleCreated && !IsDisplayed 39if (!OwningScrollBar.IsHandleCreated)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastLineButtonAccessibleObject.cs (1)
18if (!OwningScrollBar.IsHandleCreated)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastPageButtonAccessibleObject.cs (2)
17=> OwningScrollBar.IsHandleCreated && !IsDisplayed 39if (!OwningScrollBar.IsHandleCreated)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarThumbAccessibleObject.cs (1)
25if (!OwningScrollBar.IsHandleCreated)
System\Windows\Forms\Scrolling\ScrollProperties.cs (1)
261if (_parent is not null && _parent.IsHandleCreated && _visible)
System\Windows\Forms\ToolTip\ToolTip.cs (12)
525if (currentTopLevel.IsHandleCreated) 846bool handlesCreated = control.IsHandleCreated 848&& TopLevelControl.IsHandleCreated; 859if (control.IsHandleCreated && _topLevelControl is null) 874if (!_created.Contains(control) && control.IsHandleCreated && TopLevelControl is not null) 902bool handlesCreated = control.IsHandleCreated 904&& _topLevelControl.IsHandleCreated 1150if (control.IsHandleCreated) 1234if (control.IsHandleCreated) 1241bool handlesCreated = control.IsHandleCreated 1243&& TopLevelControl.IsHandleCreated; 1256if (control.IsHandleCreated)
System\Windows\Forms\UserControl.cs (1)
243if (!IsHandleCreated)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
345if (childControl.IsHandleCreated)
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (2)
31Debug.Assert(_controlToSendTo.IsHandleCreated, "Marshaling control should have created its handle in its ctor."); 39_controlToSendTo is null || _controlToSendTo.IsHandleCreated,
System.Windows.Forms.Design (36)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
532if (!_listBox.IsHandleCreated)
System\ComponentModel\Design\DesignerActionUI.cs (1)
377if (_marshalingControl is not null && _marshalingControl.IsHandleCreated)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
332if (!IsHandleCreated)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
38if (_parent.ColorPalette is { } palette && palette.IsHandleCreated)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
37if (ColorPalette is not { } palette || !palette.IsHandleCreated)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
103=> DesignerFrame is not null && !DesignerFrame.IsDisposed && DesignerFrame.IsHandleCreated;
System\Windows\Forms\Design\CommandSet.cs (1)
2942if (marshalControl is not null && marshalControl.IsHandleCreated)
System\Windows\Forms\Design\ComponentTray.cs (4)
174if (IsHandleCreated) 205if (IsHandleCreated) 259if (c is not null && IsHandleCreated) 613if (IsHandleCreated)
System\Windows\Forms\Design\ControlDesigner.cs (5)
516if (e.Control.IsHandleCreated) 892if (child.IsHandleCreated) 917Debug.Assert(child.IsHandleCreated); 980if (Control.IsHandleCreated) 1034if (Control.IsHandleCreated)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
614if (Visible && IsHandleCreated)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1838if (node is not null && IsHandleCreated) 1987if (!IsHandleCreated)
System\Windows\Forms\Design\DesignerFrame.cs (3)
85if (_designer is not null && _designer.IsHandleCreated) 420if (IsHandleCreated) 502if (c.IsHandleCreated && m.LParamInternal == c.Handle)
System\Windows\Forms\Design\DocumentDesigner.cs (3)
702if (Control.IsHandleCreated) 1049if (control is not null && control.IsHandleCreated) 1081if (ctrl is not null && ctrl.IsHandleCreated)
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
398if (Control is { } control && control.IsHandleCreated) 410if (Control is { } control && control.IsHandleCreated)
System\Windows\Forms\Design\ListBoxDesigner.cs (1)
184if (listBox.IsHandleCreated && listBox.Items.Count == 0)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
478if (!_listViewCannedMasks.IsHandleCreated)
System\Windows\Forms\Design\ScrollableControlDesigner.cs (1)
31if (f.IsHandleCreated && f.AutoScroll)
System\Windows\Forms\Design\SelectionUIService.cs (2)
1319if (IsHandleCreated) 1350if (IsHandleCreated)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
372if (e.Control is not null && !e.Control.IsHandleCreated)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
224if (_designerFrame is null || _designerFrame.IsDisposed || !_designerFrame.IsHandleCreated)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1245if (!ToolStrip.IsHandleCreated) 1411if (Control.IsHandleCreated)
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
220if( IsHandleCreated )
System\Windows\Integration\WindowsFormsHost.cs (1)
87if (SWF.ImeModeConversion.IsCurrentConversionTableSupported && this.Child != null && this.Child.IsHandleCreated)