In this article I will try to explain you, how you can create a Multi-Documented Tabbed Interface in C#.
Create a new application in C#. Change the Form1 into mdi from by changing its property isMdiContainer to true. create another form i.e. from2
Drag a tab control and main menu control on form1.create a file menu with new as a sub menu and window menu with cascade, tile Horizontal and tile vertical sub menus. Create a global variable in form1 to count the number of the child forms:
Now write following code on cascade menu item click event:
Write following code on tile Horizontal menu item click event:
Write following code on tile vertical menu item click event: Now double click on the tab control and write following code on tabControl1 SelectedIndexChanged event: Write following code on new menu item click event: Now on child from create a following global variabels: Set the get,set properties fro tabCtrl and tabPag variabels: Now write the following code on Form2 Closing event Now write the following code on Form2 Activated event:
No comments:
Post a Comment