61 writes to SelectedIndex
Accessibility_Core_App (6)
ContainerControls.Designer.cs (5)
424
this.tabControl5.
SelectedIndex
= 0;
470
this.tabControl6.
SelectedIndex
= 0;
589
this.tabControl2.
SelectedIndex
= 0;
654
this.tabControl1.
SelectedIndex
= 0;
761
this.tabControl3.
SelectedIndex
= 0;
ContainerControls2.Designer.cs (1)
364
this.tabControl4.
SelectedIndex
= 0;
DesignSurface (1)
MainForm.Designer.cs (1)
96
this.tabControl1.
SelectedIndex
= 0;
PresentationUI (1)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
142
this._tabControl.
SelectedIndex
= 0;
System.Windows.Forms (5)
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
82
_owner.
SelectedIndex
= 0;
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
738
SelectedIndex
= index;
1281
SelectedIndex
= _selectedIndex;
1559
SelectedIndex
= index;
1741
SelectedIndex
= sel;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TabControlDesigner.cs (2)
106
tc.
SelectedIndex
= 0;
296
tc.
SelectedIndex
= tc.TabCount - 1;
System.Windows.Forms.Tests (42)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (7)
243
tabControl.
SelectedIndex
= 1;
247
tabControl.
SelectedIndex
= 2;
410
tabControl.
SelectedIndex
= 1;
434
tabControl.
SelectedIndex
= 1;
438
tabControl.
SelectedIndex
= 2;
457
tabControl.
SelectedIndex
= selectedIndex;
479
tabControl.
SelectedIndex
= selectedIndex;
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (5)
246
tabControl.
SelectedIndex
= 1;
580
tabControl.
SelectedIndex
= 1;
775
tabControl.
SelectedIndex
= 1;
796
tabControl.
SelectedIndex
= 1;
818
tabControl.
SelectedIndex
= 0;
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (2)
292
tabControl.
SelectedIndex
= 1;
313
tabControl.
SelectedIndex
= 2;
System\Windows\Forms\TabControlTests.cs (28)
2033
SelectedIndex
= value
2039
control.
SelectedIndex
= value;
2056
control.
SelectedIndex
= value;
2066
control.
SelectedIndex
= value;
2092
control.
SelectedIndex
= value;
2101
control.
SelectedIndex
= value;
2130
control.
SelectedIndex
= value;
2140
control.
SelectedIndex
= value;
2171
control.
SelectedIndex
= 0;
2180
control.
SelectedIndex
= 0;
2189
control.
SelectedIndex
= 1;
2203
control.
SelectedIndex
= 0;
2284
control.
SelectedIndex
= 0;
2293
control.
SelectedIndex
= 0;
2302
control.
SelectedIndex
= 1;
2316
control.
SelectedIndex
= 0;
2362
control.
SelectedIndex
= 0;
2371
control.
SelectedIndex
= 0;
2380
control.
SelectedIndex
= 1;
2394
control.
SelectedIndex
= 0;
2462
control.
SelectedIndex
= 0;
2471
control.
SelectedIndex
= 0;
2480
control.
SelectedIndex
= 1;
2494
control.
SelectedIndex
= 0;
2507
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
SelectedIndex
= -2);
2540
SelectedIndex
= value
4146
control.
SelectedIndex
= 0;
4620
control.
SelectedIndex
= 0;
System.Windows.Forms.UI.IntegrationTests (2)
TabControlTests.cs (2)
106
tabControl.
SelectedIndex
--;
147
tabControl.
SelectedIndex
= tabControl.TabPages.Count - 1;
WinFormsControlsTest (2)
MultipleControls.Designer.cs (1)
131
this.tabControl1.
SelectedIndex
= 0;
ScrollableControls.Designer.cs (1)
316
tabControl1.
SelectedIndex
= 0;
204 references to SelectedIndex
DesignSurface (6)
MainForm.cs (6)
63
IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.
SelectedIndex
];
422
IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.
SelectedIndex
];
445
IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.
SelectedIndex
];
451
IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.
SelectedIndex
];
463
IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.
SelectedIndex
];
484
IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.
SelectedIndex
];
System.Windows.Forms (17)
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
75
int curSelectedIndex = _owner.
SelectedIndex
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (14)
664
if (
SelectedIndex
!= value)
727
int index =
SelectedIndex
;
1298
_selectedIndex =
SelectedIndex
;
1445
int index =
SelectedIndex
;
1537
int index = ((tabPages.Length > 0) && (
SelectedIndex
== -1)) ? 0 :
SelectedIndex
;
1718
int sel =
SelectedIndex
;
1807
int index =
SelectedIndex
;
1880
if (i !=
SelectedIndex
)
1950
TabControlCancelEventArgs tcc = new(SelectedTab,
SelectedIndex
, false, TabControlAction.Selecting);
1954
OnSelected(new TabControlEventArgs(SelectedTab,
SelectedIndex
, TabControlAction.Selected));
1992
_lastSelection =
SelectedIndex
;
1993
TabControlCancelEventArgs tcc = new(SelectedTab,
SelectedIndex
, false, TabControlAction.Deselecting);
1997
OnDeselected(new TabControlEventArgs(SelectedTab,
SelectedIndex
, TabControlAction.Deselected));
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
521
if (ParentInternal is TabControl tabControl && tabControl.
SelectedIndex
>= 0)
523
Rectangle rect = tabControl.GetTabRect(tabControl.
SelectedIndex
);
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
342
int sel = _tabControl.
SelectedIndex
;
System.Windows.Forms.Tests (180)
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (20)
351
Assert.Equal(0, tabControl.
SelectedIndex
);
355
Assert.Equal(1, tabControl.
SelectedIndex
);
370
Assert.Equal(-1, tabControl.
SelectedIndex
);
374
Assert.Equal(-1, tabControl.
SelectedIndex
);
390
Assert.Equal(0, tabControl.
SelectedIndex
);
394
Assert.Equal(0, tabControl.
SelectedIndex
);
410
Assert.Equal(0, tabControl.
SelectedIndex
);
414
Assert.Equal(1, tabControl.
SelectedIndex
);
429
Assert.Equal(-1, tabControl.
SelectedIndex
);
433
Assert.Equal(-1, tabControl.
SelectedIndex
);
449
Assert.Equal(0, tabControl.
SelectedIndex
);
453
Assert.Equal(0, tabControl.
SelectedIndex
);
469
Assert.Equal(0, tabControl.
SelectedIndex
);
473
Assert.Equal(1, tabControl.
SelectedIndex
);
488
Assert.Equal(-1, tabControl.
SelectedIndex
);
492
Assert.Equal(-1, tabControl.
SelectedIndex
);
508
Assert.Equal(0, tabControl.
SelectedIndex
);
512
Assert.Equal(0, tabControl.
SelectedIndex
);
534
Assert.Equal(expectedIndex, tabControl.
SelectedIndex
);
538
Assert.Equal(expectedIndex, tabControl.
SelectedIndex
);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (24)
74
Assert.Equal(-1, owner.
SelectedIndex
);
96
Assert.Equal(-1, owner.
SelectedIndex
);
124
Assert.Equal(-1, owner.
SelectedIndex
);
204
Assert.Equal(0, owner.
SelectedIndex
);
235
Assert.Equal(0, owner.
SelectedIndex
);
276
Assert.Equal(0, owner.
SelectedIndex
);
371
Assert.Equal(-1, owner.
SelectedIndex
);
396
Assert.Equal(-1, owner.
SelectedIndex
);
430
Assert.Equal(-1, owner.
SelectedIndex
);
519
Assert.Equal(0, owner.
SelectedIndex
);
553
Assert.Equal(0, owner.
SelectedIndex
);
600
Assert.Equal(0, owner.
SelectedIndex
);
931
Assert.Equal(-1, owner.
SelectedIndex
);
951
Assert.Equal(-1, owner.
SelectedIndex
);
971
Assert.Equal(-1, owner.
SelectedIndex
);
1043
Assert.Equal(-1, owner.
SelectedIndex
);
1066
Assert.Equal(-1, owner.
SelectedIndex
);
1092
Assert.Equal(-1, owner.
SelectedIndex
);
1161
Assert.Equal(0, owner.
SelectedIndex
);
1184
Assert.Equal(0, owner.
SelectedIndex
);
1207
Assert.Equal(-1, owner.
SelectedIndex
);
1280
Assert.Equal(-1, owner.
SelectedIndex
);
1303
Assert.Equal(-1, owner.
SelectedIndex
);
1329
Assert.Equal(-1, owner.
SelectedIndex
);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (45)
60
Assert.Equal(-1, owner.
SelectedIndex
);
83
Assert.Equal(-1, owner.
SelectedIndex
);
112
Assert.Equal(-1, owner.
SelectedIndex
);
193
Assert.Equal(0, owner.
SelectedIndex
);
225
Assert.Equal(0, owner.
SelectedIndex
);
267
Assert.Equal(0, owner.
SelectedIndex
);
363
Assert.Equal(-1, owner.
SelectedIndex
);
389
Assert.Equal(-1, owner.
SelectedIndex
);
424
Assert.Equal(-1, owner.
SelectedIndex
);
514
Assert.Equal(0, owner.
SelectedIndex
);
549
Assert.Equal(0, owner.
SelectedIndex
);
597
Assert.Equal(0, owner.
SelectedIndex
);
1007
Assert.Equal(-1, owner.
SelectedIndex
);
1029
Assert.Equal(-1, owner.
SelectedIndex
);
1057
Assert.Equal(-1, owner.
SelectedIndex
);
2002
Assert.Equal(-1, owner.
SelectedIndex
);
2025
Assert.Equal(-1, owner.
SelectedIndex
);
2056
Assert.Equal(-1, owner.
SelectedIndex
);
2130
Assert.Equal(0, owner.
SelectedIndex
);
2162
Assert.Equal(1, owner.
SelectedIndex
);
2206
Assert.Equal(1, owner.
SelectedIndex
);
2306
Assert.Equal(-1, owner.
SelectedIndex
);
2332
Assert.Equal(-1, owner.
SelectedIndex
);
2369
Assert.Equal(-1, owner.
SelectedIndex
);
2463
Assert.Equal(0, owner.
SelectedIndex
);
2498
Assert.Equal(1, owner.
SelectedIndex
);
2548
Assert.Equal(1, owner.
SelectedIndex
);
3048
Assert.Equal(-1, owner.
SelectedIndex
);
3071
Assert.Equal(-1, owner.
SelectedIndex
);
3102
Assert.Equal(-1, owner.
SelectedIndex
);
4018
Assert.Equal(-1, owner.
SelectedIndex
);
4039
Assert.Equal(-1, owner.
SelectedIndex
);
4060
Assert.Equal(-1, owner.
SelectedIndex
);
4133
Assert.Equal(-1, owner.
SelectedIndex
);
4157
Assert.Equal(-1, owner.
SelectedIndex
);
4184
Assert.Equal(-1, owner.
SelectedIndex
);
4256
Assert.Equal(0, owner.
SelectedIndex
);
4280
Assert.Equal(0, owner.
SelectedIndex
);
4304
Assert.Equal(-1, owner.
SelectedIndex
);
4380
Assert.Equal(-1, owner.
SelectedIndex
);
4404
Assert.Equal(-1, owner.
SelectedIndex
);
4431
Assert.Equal(-1, owner.
SelectedIndex
);
4737
Assert.Equal(-1, owner.
SelectedIndex
);
4757
Assert.Equal(-1, owner.
SelectedIndex
);
4777
Assert.Equal(-1, owner.
SelectedIndex
);
System\Windows\Forms\TabControlTests.cs (91)
94
Assert.Equal(-1, control.
SelectedIndex
);
2009
Assert.Equal(-1, control.
SelectedIndex
);
2021
Assert.Equal(0, control.
SelectedIndex
);
2035
Assert.Equal(value, control.
SelectedIndex
);
2040
Assert.Equal(value, control.
SelectedIndex
);
2057
Assert.Equal(value, control.
SelectedIndex
);
2067
Assert.Equal(value, control.
SelectedIndex
);
2093
Assert.Equal(-1, control.
SelectedIndex
);
2102
Assert.Equal(-1, control.
SelectedIndex
);
2131
Assert.Equal(expected, control.
SelectedIndex
);
2141
Assert.Equal(expected, control.
SelectedIndex
);
2172
Assert.Equal(0, control.
SelectedIndex
);
2181
Assert.Equal(0, control.
SelectedIndex
);
2190
Assert.Equal(1, control.
SelectedIndex
);
2204
Assert.Equal(0, control.
SelectedIndex
);
2228
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2241
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2254
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2265
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2285
Assert.Equal(-1, control.
SelectedIndex
);
2294
Assert.Equal(-1, control.
SelectedIndex
);
2303
Assert.Equal(-1, control.
SelectedIndex
);
2317
Assert.Equal(-1, control.
SelectedIndex
);
2341
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2363
Assert.Equal(-1, control.
SelectedIndex
);
2372
Assert.Equal(-1, control.
SelectedIndex
);
2381
Assert.Equal(-1, control.
SelectedIndex
);
2395
Assert.Equal(-1, control.
SelectedIndex
);
2419
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2432
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2445
Assert.Equal(control.
SelectedIndex
, e.TabPageIndex);
2463
Assert.Equal(-1, control.
SelectedIndex
);
2472
Assert.Equal(-1, control.
SelectedIndex
);
2481
Assert.Equal(-1, control.
SelectedIndex
);
2495
Assert.Equal(-1, control.
SelectedIndex
);
2563
Assert.Equal(-1, control.
SelectedIndex
);
2569
Assert.Equal(-1, control.
SelectedIndex
);
2586
Assert.Equal(1, control.
SelectedIndex
);
2596
Assert.Equal(1, control.
SelectedIndex
);
2606
Assert.Equal(-1, control.
SelectedIndex
);
2616
Assert.Equal(0, control.
SelectedIndex
);
2626
Assert.Equal(-1, control.
SelectedIndex
);
2649
Assert.Equal(-1, control.
SelectedIndex
);
2658
Assert.Equal(-1, control.
SelectedIndex
);
2699
Assert.Equal(1, control.
SelectedIndex
);
2718
Assert.Equal(1, control.
SelectedIndex
);
2737
Assert.Equal(-1, control.
SelectedIndex
);
2756
Assert.Equal(0, control.
SelectedIndex
);
2775
Assert.Equal(-1, control.
SelectedIndex
);
3023
Assert.Equal(-1, control.
SelectedIndex
);
3034
Assert.Equal(1, control.
SelectedIndex
);
3044
Assert.Equal(1, control.
SelectedIndex
);
3054
Assert.Equal(0, control.
SelectedIndex
);
3095
Assert.Equal(1, control.
SelectedIndex
);
3115
Assert.Equal(1, control.
SelectedIndex
);
3134
Assert.Equal(1, control.
SelectedIndex
);
3153
Assert.Equal(0, control.
SelectedIndex
);
3208
Assert.Equal(-1, control.
SelectedIndex
);
3219
Assert.Equal(1, control.
SelectedIndex
);
3229
Assert.Equal(1, control.
SelectedIndex
);
3239
Assert.Equal(0, control.
SelectedIndex
);
3286
Assert.Equal(1, control.
SelectedIndex
);
3306
Assert.Equal(1, control.
SelectedIndex
);
3325
Assert.Equal(1, control.
SelectedIndex
);
3344
Assert.Equal(0, control.
SelectedIndex
);
3402
Assert.Equal(-1, control.
SelectedIndex
);
3413
Assert.Equal(1, control.
SelectedIndex
);
3423
Assert.Equal(1, control.
SelectedIndex
);
3433
Assert.Equal(0, control.
SelectedIndex
);
3474
Assert.Equal(1, control.
SelectedIndex
);
3494
Assert.Equal(1, control.
SelectedIndex
);
3513
Assert.Equal(1, control.
SelectedIndex
);
3532
Assert.Equal(0, control.
SelectedIndex
);
5203
Assert.Equal(1, control.
SelectedIndex
);
5213
Assert.Equal(1, control.
SelectedIndex
);
5223
Assert.Equal(0, control.
SelectedIndex
);
5264
Assert.Equal(1, control.
SelectedIndex
);
5283
Assert.Equal(1, control.
SelectedIndex
);
5302
Assert.Equal(0, control.
SelectedIndex
);
5364
Assert.Equal(1, control.
SelectedIndex
);
5374
Assert.Equal(1, control.
SelectedIndex
);
5384
Assert.Equal(0, control.
SelectedIndex
);
5431
Assert.Equal(1, control.
SelectedIndex
);
5450
Assert.Equal(1, control.
SelectedIndex
);
5469
Assert.Equal(0, control.
SelectedIndex
);
5528
Assert.Equal(1, control.
SelectedIndex
);
5538
Assert.Equal(1, control.
SelectedIndex
);
5548
Assert.Equal(0, control.
SelectedIndex
);
5589
Assert.Equal(1, control.
SelectedIndex
);
5608
Assert.Equal(1, control.
SelectedIndex
);
5627
Assert.Equal(0, control.
SelectedIndex
);