session 6 bai 6 ve winform

15
Session 6 Slide 1 of 13 06/06/22 MDI Applications and Menus

Upload: mrtom16071980

Post on 18-Nov-2014

459 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Session 6 Bai 6 ve winform

Session 6

Slide 1 of 13

04/08/23

MDI Applications and Menus

Page 2: Session 6 Bai 6 ve winform

Slide 2 of 26

04/08/23

Module IntroductionWelcome to the module, MDI Applications and Menus.- MDI applications provide simultaneous access to multiple documents in a single window. - Menus to navigate through different child forms.In this module, you will learn about:+ Multiple Document Interface Applications+ Menus+ ToolStrip Control+ StatusStrip Control

Page 3: Session 6 Bai 6 ve winform

Slide 3 of 26

04/08/23

Document Interfaces An application can contain multiple forms, which are used for collecting and displaying varied information.

Page 4: Session 6 Bai 6 ve winform

Slide 4 of 26

04/08/23

MDI Parent Forms+ An MDI application consists of a parent form and multiple child forms.+ All the child forms are opened within parent form. Thus, it acts as a container that can hold all child forms.The isMdiContainer property of the form can be used to create an MDI form.

this.IsMdiContainer = true;

Page 5: Session 6 Bai 6 ve winform

Slide 5 of 26

04/08/23

MDI Child FormsThe MDI child forms are the sub-forms that are opened within the parent form.

Page 6: Session 6 Bai 6 ve winform

Slide 6 of 26

04/08/23Properties, Methods, and Events

Page 7: Session 6 Bai 6 ve winform

Slide 7 of 26

04/08/23

Menu SystemThe menu system in Windows Forms consists of the main menu panel. The main menu panel consists of menu bars and various sub-menus.

Page 8: Session 6 Bai 6 ve winform

Slide 8 of 26

04/08/23

Menu StructuresThere are two types of menus in Windows Forms namely, main menu and context menu. + The main menu, also known as anchored menus, appears on the menu bar of the form. + Context menu, also known as popup menu, are menus that appear when you click the right mouse button.

Page 9: Session 6 Bai 6 ve winform

Slide 9 of 26

04/08/23

"MenuStrip" Control The MenuStrip control helps you to add new menus, modify and reorder existing menus, and delete old menus. You can also use the access keys, check marks, images, and separator bars to improve the usability of menus.

Page 10: Session 6 Bai 6 ve winform

Slide 10 of 26

04/08/23

Properties, Methods, and EventsThe MenuStrip class is used to create the MenuStrip control and it exists in the System.Windows.Forms namespace. It is inherited from the ToolStrip class.

Page 11: Session 6 Bai 6 ve winform

Slide 11 of 26

04/08/23

"ToolStripMenultem" Control The ToolstripMenuItern class provides various properties, which enable you to modify the appearance and functionality of a menu item.

Page 12: Session 6 Bai 6 ve winform

Slide 12 of 26

04/08/23

"ContextMenuStrip" ControlThe ContextMenuStrip control is used to provide a short cut for accessing menu options displayed on the menu bar. It is similar to the context menu that appears in Microsoft Word application, when you right-click on the document.

Page 13: Session 6 Bai 6 ve winform

Slide 13 of 26

04/08/23

"Menu" Class The Menu class allows you to create menus. This class is the base class for MainMenu, MenuItem, and ContextMenu classes.

Page 14: Session 6 Bai 6 ve winform

Slide 14 of 26

04/08/23

"ToolStrip" Control You will find it faster and more convenient to use the icons on the toolbar instead of the menus. In Visual Studio 2005, the ToolStrip control serves the purpose of the toolbar.

Page 15: Session 6 Bai 6 ve winform

Slide 15 of 26

04/08/23"StatusStrip" Control The StatusStrip control is used to display useful information about the task being carried out or various controls in use. It is displayed at the bottom of the form. It can be used to display a progress bar too.