637 references to IsHandleCreated
System.Web.Entity.Design (1)
System\Data\WebControls\Design\Util\WizardForm.cs (1)
402
if (
IsHandleCreated
)
System.Windows.Forms (636)
winforms\Managed\System\WinForms\Application.cs (5)
3444
currentForm.
IsHandleCreated
&&
4142
if (
IsHandleCreated
) {
4183
if (!
IsHandleCreated
) {
4195
if (
IsHandleCreated
) {
4341
if (MainForm != null && MainForm.
IsHandleCreated
) {
winforms\Managed\System\WinForms\AxHost.cs (20)
613
else if (!f.Visible && Visible &&
IsHandleCreated
&& GetOcState() >= OC_INPLACE) {
616
else if (f.Visible && !GetState(STATE_VISIBLE) &&
IsHandleCreated
&& GetOcState() >= OC_INPLACE) {
1204
if (
IsHandleCreated
) return Handle;
1320
if (olduMode != newuMode && !
IsHandleCreated
&& !axState[disposed]) {
1347
if (uiDeactivate &&
IsHandleCreated
) {
1410
if (!
IsHandleCreated
) {
1429
Debug.Assert(!
IsHandleCreated
, "if we need a fake window, we can't have a real one");
1582
if (!
IsHandleCreated
) {
1613
if (!
IsHandleCreated
|| wndprocAddr == IntPtr.Zero) return true;
1645
if (
IsHandleCreated
) {
1867
if (!
IsHandleCreated
) {
1876
if (
IsHandleCreated
) return;
1891
if ((
IsHandleCreated
|| value) && ParentInternal != null && ParentInternal.Created) {
1901
if (!
IsHandleCreated
) {
1957
Debug.Assert(
IsHandleCreated
, "gotta have a window to hide");
1963
Debug.Assert(!
IsHandleCreated
, "if we are inplace deactivated we should not have a window.");
3346
if (!ParentInternal.
IsHandleCreated
) return;
3567
if (
IsHandleCreated
) {
3582
Debug.Assert(
IsHandleCreated
, "we got to have a handle to be here...");
4493
return
IsHandleCreated
;
winforms\Managed\System\WinForms\ButtonBase.cs (3)
253
if (
IsHandleCreated
) {
779
if (
IsHandleCreated
) {
1028
if (
IsHandleCreated
&& InvokeRequired) {
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
84
&& control != null && control.
IsHandleCreated
) {
winforms\Managed\System\WinForms\CheckBox.cs (2)
267
if (
IsHandleCreated
) {
609
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\CheckedListBox.cs (3)
548
if (
IsHandleCreated
) {
879
if (
IsHandleCreated
) {
892
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\ColumnHeader.cs (4)
210
if (ListView != null && ListView.
IsHandleCreated
) {
242
if (ListView != null && ListView.
IsHandleCreated
) {
393
if (listview != null && listview.
IsHandleCreated
&& !listview.Disposing && listview.View == View.Details) {
474
if (this.listview.
IsHandleCreated
&& !this.listview.Disposing) {
winforms\Managed\System\WinForms\ComboBox.cs (30)
547
if (
IsHandleCreated
) {
601
if (
IsHandleCreated
) {
611
if (!
IsHandleCreated
) {
724
!
IsHandleCreated
) {
737
Debug.Assert(
IsHandleCreated
, "Handle should be created at this point");
853
if (
IsHandleCreated
) SendMessage(NativeMethods.CB_LIMITTEXT, value, 0);
1035
if (
IsHandleCreated
) {
1054
if (
IsHandleCreated
) {
1064
if (
IsHandleCreated
) {
1129
if (
IsHandleCreated
) {
1252
if (
IsHandleCreated
) {
1289
if (DropDownStyle == ComboBoxStyle.DropDownList && !
IsHandleCreated
&& !String.IsNullOrEmpty(value) && FindStringExact(value) == -1)
2175
if (
IsHandleCreated
) {
2330
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
2342
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
2368
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
2381
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
2897
if (
IsHandleCreated
) {
3045
if (
IsHandleCreated
)
3146
if (!
IsHandleCreated
|| childEdit == null) {
3151
if (!fromHandleCreate && recreate &&
IsHandleCreated
)
3306
if (
IsHandleCreated
) {
3388
if (!
IsHandleCreated
) {
4154
if (owner.
IsHandleCreated
) {
4160
if (owner.
IsHandleCreated
) {
4246
if (owner.
IsHandleCreated
) {
4329
if (owner.
IsHandleCreated
) {
4363
if (owner.
IsHandleCreated
) {
4368
if (!owner.
IsHandleCreated
&& index < owner.selectedIndex) {
4404
if (owner.
IsHandleCreated
) {
winforms\Managed\System\WinForms\ContextMenu.cs (1)
224
if (!control.
IsHandleCreated
|| !control.Visible)
winforms\Managed\System\WinForms\Control.cs (76)
876
if (value && !
IsHandleCreated
) {
882
if (
IsHandleCreated
) {
1402
if (!
IsHandleCreated
) {
1475
return
IsHandleCreated
&& UnsafeNativeMethods.GetCapture() == Handle;
1547
if (GetStyle(ControlStyles.CacheText) || !
IsHandleCreated
) {
1664
if (!
IsHandleCreated
) {
2018
if (
IsHandleCreated
) {
2083
if (
IsHandleCreated
) {
2479
return
IsHandleCreated
&& UnsafeNativeMethods.GetFocus() == Handle;
2571
if (
IsHandleCreated
&& !GetStyle(ControlStyles.UserPaint)) {
2863
if (!
IsHandleCreated
)
2985
if (!
IsHandleCreated
|| !Visible) {
3049
if (!
IsHandleCreated
)
3086
if (
IsHandleCreated
) {
3092
if (!marshalingControl.
IsHandleCreated
) {
3172
if (!
IsHandleCreated
) {
3580
if (
IsHandleCreated
) {
3975
if (
IsHandleCreated
) SetWindowStyle(NativeMethods.WS_TABSTOP, value);
4169
if (!
IsHandleCreated
|| DesignMode) {
4237
if (!
IsHandleCreated
) {
4524
if (!
IsHandleCreated
) {
4553
if (
IsHandleCreated
) {
5292
if (
IsHandleCreated
) {
5600
if (!
IsHandleCreated
) {
5615
else if (
IsHandleCreated
&& GetTopLevel() && SafeNativeMethods.IsWindowEnabled(new HandleRef(window, Handle))) {
5883
if (!
IsHandleCreated
) CreateHandle();
5895
if (ctl.
IsHandleCreated
) {
6032
if (
IsHandleCreated
) DestroyHandle();
6162
if (!
IsHandleCreated
) {
6237
Debug.Assert(
IsHandleCreated
, "Handle should be created by now");
6284
while (c != null && !c.
IsHandleCreated
) {
6298
Debug.Assert(c.
IsHandleCreated
, "FindMarshalingControl chose a bad control.");
6716
if (!handleCreatedOnly || c.
IsHandleCreated
) {
7212
else if (
IsHandleCreated
) {
7267
if (
IsHandleCreated
) {
7311
else if (
IsHandleCreated
) {
7658
if (
IsHandleCreated
) {
7783
if (!
IsHandleCreated
) {
8169
if (
IsHandleCreated
) {
8224
if (
IsHandleCreated
&& !GetStyle(ControlStyles.UserPaint)) {
8404
if (
IsHandleCreated
) {
8434
if (
IsHandleCreated
) {
8722
if (this.
IsHandleCreated
) {
8810
if (this.
IsHandleCreated
)
9414
if (this.
IsHandleCreated
) {
10950
if (
IsHandleCreated
) {
10992
if (childControl != null && childControl.
IsHandleCreated
) {
11018
if (childControl != null && childControl.
IsHandleCreated
) {
11236
if (accept != GetState(STATE_DROPTARGET) &&
IsHandleCreated
) {
11731
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11740
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11744
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11749
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11754
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11763
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11772
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11781
Debug.Assert(
IsHandleCreated
, "Performance alert! Calling Control::SendMessage and forcing handle creation. Re-work control so handle creation is not required to set properties. If there is no work around, wrap the call in an IsHandleCreated check.");
11792
else if (
IsHandleCreated
&& GetTopLevel()) {
11880
if (!
IsHandleCreated
) {
11970
if (
IsHandleCreated
) {
12098
if (
IsHandleCreated
&& GetState2(STATE2_INTERESTEDINUSERPREFERENCECHANGED)) {
12130
if (
IsHandleCreated
|| value) {
12134
else if (
IsHandleCreated
|| value && parent != null && parent.Created) {
12179
if (!GetState(STATE_VISIBLE) && !value &&
IsHandleCreated
) {
12195
if (
IsHandleCreated
) {
12535
Debug.Assert(!
IsHandleCreated
, "Don't call this method when handle is created!!");
12671
if (!Disposing && findNewParent &&
IsHandleCreated
) {
12696
if (!
IsHandleCreated
|| !ctl.
IsHandleCreated
|| ctl.parent != this) return;
12700
if (c.
IsHandleCreated
&& c.parent == this) {
12738
if (
IsHandleCreated
) {
13421
if (
IsHandleCreated
) {
16088
return this.
IsHandleCreated
&& this.Visible && (host == null || host.CanShowToolTipsNow());
16170
if (neighboringControl != null && neighboringControl.
IsHandleCreated
) {
16678
if (!control.
IsHandleCreated
) {
18429
if (setRegion && control.
IsHandleCreated
) {
winforms\Managed\System\WinForms\Control.Ime.cs (1)
169
if( this.
IsHandleCreated
) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
3873
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\DataGridView.cs (8)
2987
if (!this.
IsHandleCreated
)
3034
if (!this.
IsHandleCreated
)
3107
if (!this.
IsHandleCreated
)
3183
if (!this.
IsHandleCreated
)
3761
if (this.layout.dirty && this.
IsHandleCreated
)
4785
if (this.
IsHandleCreated
&& !this.DesignMode)
4839
if (this.
IsHandleCreated
&& !this.DesignMode)
4934
if (this.
IsHandleCreated
&& !this.DesignMode)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (25)
319
if (!this.
IsHandleCreated
)
441
if (!this.
IsHandleCreated
)
1727
if (!this.
IsHandleCreated
)
1800
if (!this.
IsHandleCreated
)
1870
if (!this.
IsHandleCreated
)
2000
if (!this.
IsHandleCreated
)
2173
if (!this.
IsHandleCreated
)
2301
if (!this.
IsHandleCreated
)
2423
if (!this.
IsHandleCreated
)
9968
if (this.
IsHandleCreated
)
9995
if (this.
IsHandleCreated
)
10007
if (this.
IsHandleCreated
)
10018
if (this.
IsHandleCreated
)
10041
if (this.
IsHandleCreated
)
10054
if (this.
IsHandleCreated
)
14946
if (e.Column.Visible && this.
IsHandleCreated
)
15492
if (this.
IsHandleCreated
&& this.Enabled)
18715
if (this.
IsHandleCreated
)
20255
if (this.
IsHandleCreated
)
20340
if (!this.
IsHandleCreated
)
28914
if (this.
IsHandleCreated
)
28931
if (this.
IsHandleCreated
)
28986
if (this.
IsHandleCreated
&& this.layout.RowHeadersVisible)
29007
if (this.
IsHandleCreated
&& this.layout.RowHeadersVisible)
29043
if (this.
IsHandleCreated
&& (rowIndex == -1 || rowVisible))
winforms\Managed\System\WinForms\DateTimePicker.cs (9)
416
if (this.ShowCheckBox &&
IsHandleCreated
) {
427
if (this.ShowCheckBox &&
IsHandleCreated
) {
516
if (
IsHandleCreated
) {
1029
if (
IsHandleCreated
) {
1377
if (
IsHandleCreated
) {
1396
if (
IsHandleCreated
) {
1406
if (
IsHandleCreated
) {
1433
if (
IsHandleCreated
) {
1475
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
942
if (!parent.
IsHandleCreated
)
winforms\Managed\System\WinForms\Form.cs (41)
469
if( this.ctlClient != null && this.ctlClient.
IsHandleCreated
){
875
if (formState[FormStateSetClientSize] == 1 && !
IsHandleCreated
) {
996
if (this.
IsHandleCreated
&& (this.WindowStyle & NativeMethods.WS_DISABLED) != 0)
1642
if (
IsHandleCreated
&& Menu == null) {
1710
if (formState[FormStateSetClientSize] == 1 && !
IsHandleCreated
) {
1775
if (
IsHandleCreated
) {
1941
if (ParentInternal.
IsHandleCreated
&& IsMdiChild &&
IsHandleCreated
) {
2288
if (
IsHandleCreated
) {
2575
if (
IsHandleCreated
&& TopLevel) {
2689
if (
IsHandleCreated
) {
2785
if (
IsHandleCreated
&& Visible) {
3086
if (Visible &&
IsHandleCreated
) {
3341
if (
IsHandleCreated
) {
3400
|| !
IsHandleCreated
) {
3568
if (
IsHandleCreated
) {
3647
if (IsMdiChild && MdiParentInternal.
IsHandleCreated
) {
3649
if (mdiClient != null && !mdiClient.
IsHandleCreated
) {
3777
if (ctlClient != null && ctlClient.
IsHandleCreated
&& ctlClient.ParentInternal == this){
4078
Debug.Assert(
IsHandleCreated
, "Attempt to set focus to a form that has not yet created its handle." );
4387
return GetState(STATE_VISIBLE) &&
IsHandleCreated
;
4556
if (ctlClient == null || !ctlClient.
IsHandleCreated
) {
4563
if (
IsHandleCreated
) {
4587
if (ctlClient != null && ctlClient.
IsHandleCreated
) {
4906
if (
IsHandleCreated
)
4989
if (
IsHandleCreated
5526
if (
IsHandleCreated
) {
5708
if (
IsHandleCreated
&& UnsafeNativeMethods.GetForegroundWindow() == this.Handle) {
5713
else if (!
IsHandleCreated
|| UnsafeNativeMethods.GetForegroundWindow() != this.Handle)
6031
if (
IsHandleCreated
) {
6241
if (
IsHandleCreated
) {
6428
if (
IsHandleCreated
&& TopLevel) {
6451
if ((formState[FormStateLayered] != 0) &&
IsHandleCreated
&& TopLevel && OSFeature.Feature.IsPresent(OSFeature.LayeredWindows)) {
6484
if (
IsHandleCreated
) {
6501
Debug.Assert(
IsHandleCreated
, "shouldn't call when handle == 0");
6518
if (ctlClient == null || !ctlClient.
IsHandleCreated
) {
6796
if (
IsHandleCreated
) {
6844
if (
IsHandleCreated
) {
7027
if (mdiChild.
IsHandleCreated
) {
7091
if (mdiChild.
IsHandleCreated
) {
7283
Debug.Assert(
IsHandleCreated
, "how is handle 0?");
winforms\Managed\System\WinForms\GroupBox.cs (2)
324
if (suspendRedraw &&
IsHandleCreated
) {
330
if (suspendRedraw &&
IsHandleCreated
) {
winforms\Managed\System\WinForms\Label.cs (4)
1005
if (
IsHandleCreated
) {
1335
if( !
IsHandleCreated
){
1365
if (
IsHandleCreated
) {
1444
if (
IsHandleCreated
&& InvokeRequired)
winforms\Managed\System\WinForms\LinkLabel.cs (3)
400
if (
IsHandleCreated
) {
823
if (
IsHandleCreated
) {
1816
if (!
IsHandleCreated
) {
winforms\Managed\System\WinForms\ListBox.cs (34)
318
else if (
IsHandleCreated
) {
461
if (
IsHandleCreated
) {
632
if (drawMode == DrawMode.OwnerDrawFixed &&
IsHandleCreated
) {
776
if (
IsHandleCreated
)
872
if (current == SelectionMode.One &&
IsHandleCreated
) {
905
if (
IsHandleCreated
) {
924
if (
IsHandleCreated
) {
1042
if (
IsHandleCreated
)
1142
if (
IsHandleCreated
) {
1150
if (
IsHandleCreated
) {
1377
if (
IsHandleCreated
) {
1487
if (
IsHandleCreated
) {
1533
if (
IsHandleCreated
) {
1582
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
1606
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
1625
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
1650
Debug.Assert(
IsHandleCreated
, "Shouldn't be calling Native methods before the handle is created.");
1668
Debug.Assert(
IsHandleCreated
, "Should only call Native methods after the handle has been created");
1685
Debug.Assert(
IsHandleCreated
, "Should only call native methods if handle is created");
1984
if (
IsHandleCreated
) {
2104
if (
IsHandleCreated
) {
2137
if (
IsHandleCreated
) {
2163
if (
IsHandleCreated
) {
2211
if (!multiColumn && horizontalScrollbar &&
IsHandleCreated
) {
2265
if (
IsHandleCreated
&& UseCustomTabOffsets && CustomTabOffsets != null) {
3082
if (owner.
IsHandleCreated
)
3096
if (owner.
IsHandleCreated
)
3206
if (owner.
IsHandleCreated
) {
3304
if (owner.
IsHandleCreated
) {
3354
if (owner.
IsHandleCreated
) {
3375
if (owner.
IsHandleCreated
) {
4137
if (owner.
IsHandleCreated
) {
4221
if (owner.
IsHandleCreated
) {
4462
if (this.owner.
IsHandleCreated
&& IsChildIdValid(this.childId, this.owner.AccessibilityObject.GetSystemIAccessibleInternal())) {
winforms\Managed\System\WinForms\ListView.cs (96)
385
if (
IsHandleCreated
) {
430
if (
IsHandleCreated
&& BackgroundImage != null) {
553
if ((!value && this.StateImageList != null && this.
IsHandleCreated
) ||
554
(!value && this.Alignment == ListViewAlignment.Left && this.
IsHandleCreated
) ||
555
(value && this.View == View.List && this.
IsHandleCreated
) ||
556
(value && (this.View == View.SmallIcon || this.View == View.LargeIcon) && this.
IsHandleCreated
)) {
588
if (
IsHandleCreated
&& imageListState != null) {
687
if (
IsHandleCreated
) {
824
if (
IsHandleCreated
) {
832
if (
IsHandleCreated
&& value != null) {
854
if (
IsHandleCreated
) {
1194
if (
IsHandleCreated
) {
1401
if (
IsHandleCreated
) {
1437
if (
IsHandleCreated
) {
1550
if (
IsHandleCreated
)
1564
if (this.
IsHandleCreated
&& imageListState != null && this.CheckBoxes) {
1581
if (
IsHandleCreated
) {
1637
if (this.
IsHandleCreated
) {
1658
if (this.
IsHandleCreated
) {
1692
if (!
IsHandleCreated
) {
1714
if (!
IsHandleCreated
) {
1791
if (
IsHandleCreated
&& ComctlSupportsVisualStyles) {
1828
bool keepTopItem = this.
IsHandleCreated
&& VirtualMode && this.View == View.Details && !this.DesignMode;
1836
if (
IsHandleCreated
&& VirtualMode && !DesignMode)
2241
if (
IsHandleCreated
) {
2269
if (!this.
IsHandleCreated
) {
2277
if (!this.
IsHandleCreated
) {
3045
if (
IsHandleCreated
&& ComctlSupportsVisualStyles && GroupsEnabled) {
3062
if (
IsHandleCreated
)
3158
if (!
IsHandleCreated
)
3219
if (CheckBoxes &&
IsHandleCreated
) {
3276
if (
IsHandleCreated
&& !ListViewHandleDestroyed) {
3394
Debug.Assert(
IsHandleCreated
, "How did we add items without a handle?");
3583
if (viewStyle == View.Details &&
IsHandleCreated
) {
3614
if (
IsHandleCreated
&& this.View != View.Tile) {
3645
if (ch.ActualImageIndex_Internal != -1 && this.
IsHandleCreated
&& this.View != View.Tile) {
3671
if (this.
IsHandleCreated
&& this.View == View.Tile) {
3673
} else if (
IsHandleCreated
&& refreshSubItems)
3736
Debug.Assert(
IsHandleCreated
,"InsertGroupNative precondition: list-view handle must be created");
3764
if (this.
IsHandleCreated
&& this.Items.Count == 0 && this.View == View.SmallIcon && this.ComctlSupportsVisualStyles)
3819
if (!
IsHandleCreated
) {
3827
if (
IsHandleCreated
) {
3858
Debug.Assert(
IsHandleCreated
, "InsertItemsNative precondition: list-view handle must be created");
4026
if (
IsHandleCreated
) {
4035
if (!this.VirtualMode && (null != sender) && (sender == imageListLarge) &&
IsHandleCreated
) {
4048
if (this.
IsHandleCreated
) {
4070
if (
IsHandleCreated
) {
4229
if (!VirtualMode &&
IsHandleCreated
&& AutoArrange) {
4475
if (
IsHandleCreated
) {
4485
if (this.View == View.Details && !this.Scrollable && this.
IsHandleCreated
) {
4550
if (
IsHandleCreated
) {
4695
if (this.
IsHandleCreated
)
4759
Debug.Assert(
IsHandleCreated
,"RemoveGroupNative precondition: list-view handle must be created");
4870
if (
IsHandleCreated
) {
4951
if (
IsHandleCreated
) {
4955
if (this.
IsHandleCreated
&&
4966
if (
IsHandleCreated
) {
4980
if (this.
IsHandleCreated
&& !this.Disposing) {
5053
if (this.
IsHandleCreated
) {
5066
if (this.
IsHandleCreated
) {
5081
Debug.Assert(
IsHandleCreated
, "How did we add items without a handle?");
5093
Debug.Assert(index == -1 || this.
IsHandleCreated
, "How did we add items without a handle?");
5095
if (this.
IsHandleCreated
) {
5115
Debug.Assert(
IsHandleCreated
, "SetItemText with no handle");
5160
if (
IsHandleCreated
) {
5178
if (
IsHandleCreated
&& listItemSorter != null) {
5185
if (
IsHandleCreated
) {
5225
if (!VirtualMode &&
IsHandleCreated
&& AutoArrange && (View == View.LargeIcon || View == View.SmallIcon)) {
5260
if (
IsHandleCreated
) {
5307
Debug.Assert(
IsHandleCreated
,"UpdateGroupNative precondition: list-view handle must be created");
5332
if (
IsHandleCreated
&& ComctlSupportsVisualStyles && !VirtualMode) {
5800
if (this.
IsHandleCreated
&& this.StateImageList != null) {
6989
if (owner.
IsHandleCreated
) {
7006
if (owner.
IsHandleCreated
) {
7041
if (owner.
IsHandleCreated
) {
7205
if (this.owner.
IsHandleCreated
)
7233
if (this.owner.
IsHandleCreated
)
7269
if (this.owner.
IsHandleCreated
)
7309
if (owner.
IsHandleCreated
) {
7356
if (owner.
IsHandleCreated
) {
7383
if (owner.
IsHandleCreated
) {
7997
if (owner.
IsHandleCreated
) {
8003
if (owner.
IsHandleCreated
) {
8185
if (owner.
IsHandleCreated
&& this.owner.View != View.Tile) {
8225
if (owner.
IsHandleCreated
&& this.owner.View == View.Tile) {
8870
if (owner.
IsHandleCreated
&& !owner.ListViewHandleDestroyed) {
8911
if (owner.
IsHandleCreated
&& !owner.CheckBoxes && valueChecked) {
8939
if (owner.
IsHandleCreated
&& !owner.CheckBoxes) {
8954
if (owner.
IsHandleCreated
&& !owner.CheckBoxes) {
8979
if (owner.
IsHandleCreated
&& !owner.ListViewHandleDestroyed) {
8997
if (owner.
IsHandleCreated
&& !owner.ListViewHandleDestroyed) {
9056
if (owner.
IsHandleCreated
&& !owner.CheckBoxes) {
9071
if (owner.
IsHandleCreated
&& !owner.ListViewHandleDestroyed) {
9107
if (owner.
IsHandleCreated
&& !owner.CheckBoxes && item.Checked) {
9152
if (owner.
IsHandleCreated
&& !owner.CheckBoxes && this[index].Checked) {
9160
if (owner.
IsHandleCreated
) {
winforms\Managed\System\WinForms\ListViewGroup.cs (6)
274
if (listView != null && listView.
IsHandleCreated
) {
458
if (listView.
IsHandleCreated
) {
526
if (listView.
IsHandleCreated
) {
605
if (listView.
IsHandleCreated
) {
620
Debug.Assert(listView.
IsHandleCreated
, "MoveGroupItems pre-condition: listView handle must be created");
637
if (listView.
IsHandleCreated
) {
winforms\Managed\System\WinForms\ListViewGroupItemCollection.cs (1)
168
if (item.ListView != null && item.ListView.
IsHandleCreated
&& !item.ListView.InsertingItemsNatively) {
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (4)
48
if (listView.
IsHandleCreated
) {
86
if (listView.
IsHandleCreated
) {
107
if (listView.
IsHandleCreated
) {
133
Debug.Assert(listView.
IsHandleCreated
, "ApplySavedState Precondition: List-view handle must be created");
winforms\Managed\System\WinForms\ListViewItem.cs (22)
390
if (listView != null && listView.
IsHandleCreated
) {
419
if (listView != null && listView.
IsHandleCreated
) {
426
if (listView != null && listView.
IsHandleCreated
) {
542
if (listView != null && listView.
IsHandleCreated
) {
577
if (listView != null && listView.
IsHandleCreated
) {
619
if (listView != null && listView.
IsHandleCreated
) {
691
if (listView != null && listView.
IsHandleCreated
) {
700
if (listView != null && listView.
IsHandleCreated
) {
745
if (listView != null && listView.
IsHandleCreated
) {
752
if (listView != null && listView.
IsHandleCreated
) {
760
if (this.listView != null && this.listView.
IsHandleCreated
) {
785
if (listView != null && listView.
IsHandleCreated
) {
795
if (listView != null && listView.
IsHandleCreated
) {
924
if (this.listView != null && this.listView.
IsHandleCreated
) {
1022
if (listView != null && listView.
IsHandleCreated
) {
1052
if (listView != null && listView.
IsHandleCreated
) {
1060
if (listView != null && listView.
IsHandleCreated
&& listView.View == View.Details) {
1127
Debug.Assert(listView.
IsHandleCreated
, "Should only invoke UpdateStateToListView when handle is created.");
1170
if (listView != null && listView.
IsHandleCreated
&& displayIndex != -1) {
1371
if (listView != null && listView.
IsHandleCreated
) {
1381
if (listView != null && listView.
IsHandleCreated
) {
1497
if(owner != null && owner.listView != null && owner.listView.
IsHandleCreated
) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
1227
if (this.
IsHandleCreated
)
2005
if (Application.RenderWithVisualStyles && this.
IsHandleCreated
&& this.BorderStyle == BorderStyle.Fixed3D)
winforms\Managed\System\WinForms\MDIClient.cs (1)
239
if (
IsHandleCreated
&& (site == null || !site.DesignMode)) {
winforms\Managed\System\WinForms\MenuStrip.cs (2)
200
if (
IsHandleCreated
) {
208
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\MonthCalendar.cs (10)
514
if (
IsHandleCreated
) {
614
if (
IsHandleCreated
) {
787
if (
IsHandleCreated
) {
986
if (
IsHandleCreated
) {
1057
if (
IsHandleCreated
) {
1504
if (
IsHandleCreated
) {
1978
if (
IsHandleCreated
) {
2011
if (
IsHandleCreated
) {
2150
if (
IsHandleCreated
) {
2258
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\PictureBox.cs (1)
1239
if (InvokeRequired &&
IsHandleCreated
) {
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (2)
210
if (dialog != null && dialog.
IsHandleCreated
) {
227
if (dialog != null && dialog.
IsHandleCreated
) {
winforms\Managed\System\WinForms\ProgressBar.cs (9)
165
if (
IsHandleCreated
)
359
if (
IsHandleCreated
&& style == ProgressBarStyle.Marquee)
403
if (
IsHandleCreated
) {
440
if (
IsHandleCreated
) {
451
if (
IsHandleCreated
)
460
if (
IsHandleCreated
)
553
if (
IsHandleCreated
) SendMessage(NativeMethods.PBM_SETSTEP, step, 0);
884
if (
IsHandleCreated
) SendMessage(NativeMethods.PBM_SETPOS, value, 0);
891
if (
IsHandleCreated
)
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
765
if (value &&
IsHandleCreated
&& this.Visible) {
2974
if (!
IsHandleCreated
|| !this.Visible) {
3239
if (
IsHandleCreated
&& this.Visible) {
3631
if (Visible &&
IsHandleCreated
) {
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (3)
85
if (this.ownerGrid.
IsHandleCreated
&& !
IsHandleCreated
) {
224
if (
IsHandleCreated
&& needUpdateUIWithFont) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (6)
46
if (controls[i].
IsHandleCreated
) {
57
if (this.
IsHandleCreated
|| !String.IsNullOrEmpty(value)) {
68
if (this.
IsHandleCreated
) {
159
if (
IsHandleCreated
) {
167
if (controls[i].
IsHandleCreated
) {
203
if (this.
IsHandleCreated
) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
419
if (edit != null && edit.
IsHandleCreated
) {
996
if (
IsHandleCreated
&& Visible && Enabled) {
2568
if (DropDownListBox.
IsHandleCreated
)
5180
if (
IsHandleCreated
&& GetFlag(FlagNeedUpdateUIBasedOnFont)) {
winforms\Managed\System\WinForms\RadioButton.cs (2)
225
if (
IsHandleCreated
) SendMessage(NativeMethods.BM_SETCHECK, value? 1: 0, 0);
429
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\RichTextBox.cs (25)
231
if (
IsHandleCreated
) {
316
if (
IsHandleCreated
&& SelectionBullet)
343
if (
IsHandleCreated
) {
452
if (
IsHandleCreated
) {
507
if (
IsHandleCreated
) {
524
if (
IsHandleCreated
)
596
if (
IsHandleCreated
) {
609
if (
IsHandleCreated
) {
717
else if (
IsHandleCreated
) {
744
if (
IsHandleCreated
)
1034
if (
IsHandleCreated
) {
1054
if (
IsHandleCreated
)
1191
if (!
IsHandleCreated
) {
1422
if (
IsHandleCreated
) {
1451
if (!
IsHandleCreated
&& textRtf == null) {
1473
if (!
IsHandleCreated
) {
1579
if (
IsHandleCreated
) {
2223
if (!
IsHandleCreated
)
2265
if (
IsHandleCreated
) {
2462
if (
IsHandleCreated
)
2829
if (
IsHandleCreated
) {
2856
if (
IsHandleCreated
) {
3253
if (
IsHandleCreated
) {
3299
if (
IsHandleCreated
)
3394
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\ScrollableControl.cs (3)
874
if (xDelta != 0 || yDelta != 0 &&
IsHandleCreated
) {
894
if (ctl != null && ctl.
IsHandleCreated
) {
1227
if (!
IsHandleCreated
) {
winforms\Managed\System\WinForms\ScrollBar.cs (1)
791
if (
IsHandleCreated
&& Enabled) {
winforms\Managed\System\WinForms\ScrollProperties.cs (1)
312
if (parent.
IsHandleCreated
&& visible) {
winforms\Managed\System\WinForms\SplitContainer.cs (2)
584
if (
IsHandleCreated
) {
1705
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\StatusBar.cs (6)
441
if (
IsHandleCreated
) {
569
return this.showPanels &&
IsHandleCreated
;
589
if (!
IsHandleCreated
)
776
if (
IsHandleCreated
&& panelsRealized != panels.Count) {
862
if (!showPanels &&
IsHandleCreated
) {
991
if (
IsHandleCreated
&& !DesignMode) {
winforms\Managed\System\WinForms\StatusStrip.cs (1)
189
if (SizingGrip &&
IsHandleCreated
) {
winforms\Managed\System\WinForms\TabControl.cs (19)
427
if (!
IsHandleCreated
) {
431
if (
IsHandleCreated
)
493
if (
IsHandleCreated
) {
527
if (
IsHandleCreated
)
560
if (
IsHandleCreated
) {
649
if (
IsHandleCreated
) {
723
if (
IsHandleCreated
) {
738
if (
IsHandleCreated
) {
1076
if (
IsHandleCreated
&& ShouldSerializeItemSize()) {
1248
if (!
IsHandleCreated
)
1264
if (
IsHandleCreated
)
1307
if (
IsHandleCreated
) {
1660
if (
IsHandleCreated
) {
1709
if (
IsHandleCreated
) {
1750
if (
IsHandleCreated
)
1753
if (DesignMode &&
IsHandleCreated
) {
1906
if (
IsHandleCreated
) {
2743
if (owner.
IsHandleCreated
) {
2757
if (owner.
IsHandleCreated
) {
winforms\Managed\System\WinForms\TabPage.cs (1)
742
if (parent is TabControl && parent.
IsHandleCreated
) {
winforms\Managed\System\WinForms\TextBox.cs (6)
384
if (!
IsHandleCreated
) {
392
if (
IsHandleCreated
) {
607
if (Application.RenderWithVisualStyles && this.
IsHandleCreated
&& this.BorderStyle == BorderStyle.Fixed3D) {
778
if (
IsHandleCreated
&& AutoCompleteCustomSource != null) {
801
if (
IsHandleCreated
) {
833
if ((AutoCompleteMode != AutoCompleteMode.None || force) &&
IsHandleCreated
) {
winforms\Managed\System\WinForms\TextBoxBase.cs (15)
467
if (
IsHandleCreated
) {
782
if (
IsHandleCreated
) {
799
if (
IsHandleCreated
) {
1003
if( !
IsHandleCreated
) {
1071
if (
IsHandleCreated
) {
1123
if (!
IsHandleCreated
) {
1242
if (
IsHandleCreated
) {
1257
if (
IsHandleCreated
&& Marshal.SystemDefaultCharSize == 2) {
1317
if (
IsHandleCreated
) {
1457
if (
IsHandleCreated
) {
1511
return
IsHandleCreated
? TextLength + 1 : TextLength;
1826
if (
IsHandleCreated
) {
1952
if (
IsHandleCreated
) {
2058
Debug.Assert(
IsHandleCreated
, "Don't call this method until the handle is created.");
2178
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\ToolBar.cs (13)
379
if (
IsHandleCreated
&& buttons != null && buttonCount > 0) {
641
if (
IsHandleCreated
)
701
if (buttons == null || buttonCount == 0 || !
IsHandleCreated
) {
729
if (Wrappable &&
IsHandleCreated
) {
771
if (!
IsHandleCreated
|| buttons == null)
1132
if (buttons != null && buttonSize.IsEmpty &&
IsHandleCreated
) {
1155
if (
IsHandleCreated
)
1198
if (
IsHandleCreated
) {
1235
if (
IsHandleCreated
) {
1340
if (
IsHandleCreated
) {
1520
if (
IsHandleCreated
) {
1978
if (owner.
IsHandleCreated
) {
2122
if (owner.
IsHandleCreated
) {
winforms\Managed\System\WinForms\ToolBarButton.cs (4)
172
if (parent != null && parent.
IsHandleCreated
) {
283
if (parent == null || !parent.
IsHandleCreated
)
312
if (parent == null || !parent.
IsHandleCreated
)
760
if (updatePushedState && parent != null && parent.
IsHandleCreated
) {
winforms\Managed\System\WinForms\ToolStrip.cs (6)
1010
if (!
IsHandleCreated
) {
1395
using (LayoutTransaction.CreateTransactionIf(
IsHandleCreated
, this, this, PropertyNames.LayoutStyle)) {
2040
if (
IsHandleCreated
&& item != null) {
2160
if (this.
IsHandleCreated
) {
2190
|| !this.OverflowButton.DropDown.
IsHandleCreated
;
2718
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\ToolStripContainer.cs (1)
431
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (7)
448
if (
IsHandleCreated
&& !DesignMode) {
1241
if (!
IsHandleCreated
) {
1330
if (
IsHandleCreated
) {
1399
if (
IsHandleCreated
) {
1766
if (
IsHandleCreated
) {
1841
else if (
IsHandleCreated
&& SafeNativeMethods.IsWindowEnabled(new HandleRef(this, Handle))) {
2019
if (state[stateLayered] &&
IsHandleCreated
&& TopLevel && OSFeature.Feature.IsPresent(OSFeature.LayeredWindows)) {
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
249
if (accept && owner.
IsHandleCreated
) {
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
355
if ((this.ParentInternal != null) && this.ParentInternal.
IsHandleCreated
) {
3068
if (parent.
IsHandleCreated
&& parent.InvokeRequired) {
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (1)
364
if (owner.
IsHandleCreated
){
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
630
if (toolStripPanel != null && toolStripPanel.
IsHandleCreated
&& toolStripPanel.Visible &&
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
1000
if (toolStripToDrag.Site != null && toolStripToDrag.Site.DesignMode &&
IsHandleCreated
) {
winforms\Managed\System\WinForms\ToolTip.cs (12)
625
if (baseVar.
IsHandleCreated
) {
998
bool handlesCreated = ctl.
IsHandleCreated
1000
&& TopLevelControl.
IsHandleCreated
;
1008
if (ctl.
IsHandleCreated
&& topLevelControl == null) {
1020
&& ctl.
IsHandleCreated
1052
bool handlesCreated = ctl.
IsHandleCreated
1054
&& topLevelControl.
IsHandleCreated
1363
if (regions[i].
IsHandleCreated
) {
1465
if (control.
IsHandleCreated
) {
1470
bool handlesCreated = control.
IsHandleCreated
1472
&& TopLevelControl.
IsHandleCreated
;
1493
if (control.
IsHandleCreated
) {
winforms\Managed\System\WinForms\TrackBar.cs (9)
366
if (
IsHandleCreated
)
459
if (
IsHandleCreated
) {
516
if (
IsHandleCreated
)
574
if (
IsHandleCreated
)
661
if (
IsHandleCreated
) {
807
if (
IsHandleCreated
) {
882
if (
IsHandleCreated
) {
1098
if (
IsHandleCreated
) {
1125
if (
IsHandleCreated
) {
winforms\Managed\System\WinForms\TreeNode.cs (7)
337
if (tv == null || !tv.
IsHandleCreated
|| tv.IsDisposed)
1324
if (tv == null || !tv.
IsHandleCreated
) {
1563
if (tv == null || !tv.
IsHandleCreated
) {
1651
if (treeView != null && treeView.
IsHandleCreated
) treeView.Invalidate();
1661
if (tv == null || !tv.
IsHandleCreated
|| tv.IsDisposed)
1805
if (notify && tv.
IsHandleCreated
)
1825
Debug.Assert(tv.
IsHandleCreated
, "nonexistent handle");
winforms\Managed\System\WinForms\TreeView.cs (36)
211
if (
IsHandleCreated
) {
327
if (
IsHandleCreated
) {
357
if (
IsHandleCreated
) {
393
if (ShowNodeToolTips &&
IsHandleCreated
&& !DesignMode) {
400
if (CheckBoxes &&
IsHandleCreated
)
464
if (
IsHandleCreated
)
484
if (
IsHandleCreated
) {
509
if (
IsHandleCreated
) {
535
if (
IsHandleCreated
) {
582
if (
IsHandleCreated
) {
614
if (
IsHandleCreated
) {
646
if (
IsHandleCreated
) {
715
if (
IsHandleCreated
)
755
else if (
IsHandleCreated
) {
770
if (
IsHandleCreated
) {
792
if (
IsHandleCreated
) {
812
if (
IsHandleCreated
) {
847
if (
IsHandleCreated
) {
866
if (
IsHandleCreated
) {
875
if (
IsHandleCreated
) {
1070
if (
IsHandleCreated
) {
1103
if (
IsHandleCreated
) {
1122
if (
IsHandleCreated
) {
1137
if (
IsHandleCreated
&& (value == null || value.TreeView == this)) {
1170
if (
IsHandleCreated
) {
1216
if (
IsHandleCreated
) {
1238
if (
IsHandleCreated
) {
1334
if (
IsHandleCreated
) {
1341
if (
IsHandleCreated
&& (value == null || value.TreeView == this)) {
1373
if (
IsHandleCreated
)
1747
if (
IsHandleCreated
) {
1843
if (
IsHandleCreated
) {
1862
if ((null != sender) && (sender == imageList) &&
IsHandleCreated
) {
1872
if (
IsHandleCreated
) {
1882
if ((null != sender) && (sender == stateImageList) &&
IsHandleCreated
) {
2622
if (
IsHandleCreated
&& CheckBoxes) {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1161
if (child != null &&
IsHandleCreated
) {
winforms\Managed\System\WinForms\UserControl.cs (1)
290
if (!
IsHandleCreated
) return false;
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
530
if ((Visible && parent != null && parent.Visible) || this.
IsHandleCreated
) {
668
return
IsHandleCreated
? Handle : IntPtr.Zero;
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (2)
44
Debug.Assert(controlToSendTo.
IsHandleCreated
, "Marshaling control should have created its handle in its ctor.");
50
Debug.Assert(controlToSendTo.
IsHandleCreated
, "Marshaling control should have created its handle in its ctor.");