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