Visual Programming Dr /Usama Abo Zaid PREPARED BY / MOSTAFA MOHAMED MOSTAFA
Chapter 4 Graphical User Interfaces (GUI) with Windows Forms
Tab control control enables you to specify more information in he same space on a form and group displayed data logically. TabControls contain TabPages that are similar to panels and Groubox. TabControl Control
You can add controls in the tabpages. Write, myTapPageName.Controls.Add(theControl); You can add controls in theTabControl. Write myTabControl.Controls.Add(theTabPage); The initial page appears by default
TabControl Control Tab control Tab pages controls
Only One page is displayed at a time. In TabControl tabpages appear in order,the first tabpage then the second and the third,this is default. TABS TabControl tabpages
To change the initial TabPage Write, TabControlname.SelectedTab(index);
Tap control properties and events Tab control properties and an eventDescription ImageListSpecifies images to be displayed on Tabs. ItemSizeSpecifies the tab size. multilineIndicates whether multiple rows of tabs can be displayed. selectedIndexIndex of the selected PageTab. selectedTabThe selected TabPage.
Tap control properties and events Tab control properties and an eventDescription TabCountReturns the numbers of TabPages. TabPagesReturn the collection ofTabPages within the TabControl. As s Tabcontrol.TapPageCollection. Common Events SelectedIndexChangedGenerated when selectedIndex Changes
TabControl Control In page 125 practical example with figure in page 127.
THANKS with best wishes for success MOSTAFA MOHAMED MOSTAFA