SlideShare une entreprise Scribd logo
1  sur  15
Session 6
Slide 1 of 1309/20/13
MDI Applications and Menus
Slide 2 of 2609/20/13
Module Introduction
Welcome 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
Slide 3 of 2609/20/13
Document Interfaces
An application can contain multiple forms, which are used for collecting and displaying varied
information.
Slide 4 of 2609/20/13
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;
Slide 5 of 2609/20/13
MDI Child Forms
The MDI child forms are the sub-forms that are opened within the parent form.
Slide 6 of 2609/20/13
Properties, Methods, and Events
Slide 7 of 2609/20/13
Menu System
The menu system in Windows Forms consists of the main menu panel. The main menu panel
consists of menu bars and various sub-menus.
Slide 8 of 2609/20/13
Menu Structures
There 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.
Slide 9 of 2609/20/13
"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.
Slide 10 of 2609/20/13
Properties, Methods, and Events
The 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.
Slide 11 of 2609/20/13
"ToolStripMenultem" Control
The ToolstripMenuItern class provides various properties, which enable you to modify the
appearance and functionality of a menu item.
Slide 12 of 2609/20/13
"ContextMenuStrip" Control
The 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.
Slide 13 of 2609/20/13
"Menu" Class
The Menu class allows you to create menus. This class is the base class for MainMenu,
MenuItem, and ContextMenu classes.
Slide 14 of 2609/20/13
"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.
Slide 15 of 2609/20/13
"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.

Contenu connexe

Similaire à Session 6 Bai 6 ve winform

Vb net xp_09
Vb net xp_09Vb net xp_09
Vb net xp_09
Niit Care
 
LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)
LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)
LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)
hazizulgyjuls
 
Session 5 Bai 5 ve winform
Session 5 Bai 5 ve winformSession 5 Bai 5 ve winform
Session 5 Bai 5 ve winform
mrtom16071980
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
classall
 

Similaire à Session 6 Bai 6 ve winform (20)

Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
 
UNIT-2-AJAVA.pdf
UNIT-2-AJAVA.pdfUNIT-2-AJAVA.pdf
UNIT-2-AJAVA.pdf
 
Windows
WindowsWindows
Windows
 
Intake 37 9
Intake 37 9Intake 37 9
Intake 37 9
 
Grasping The LightSwitch Paradigm
Grasping The LightSwitch ParadigmGrasping The LightSwitch Paradigm
Grasping The LightSwitch Paradigm
 
Vb net xp_09
Vb net xp_09Vb net xp_09
Vb net xp_09
 
LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)
LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)
LUC/DPH/PHM/125/LNC/DPH/JUL11/05(Windows)
 
Final report mobile shop
Final report   mobile shopFinal report   mobile shop
Final report mobile shop
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
6. safe users-guide
6.  safe users-guide6.  safe users-guide
6. safe users-guide
 
360 Flex Atlanta
360 Flex Atlanta360 Flex Atlanta
360 Flex Atlanta
 
04 gui 05
04 gui 0504 gui 05
04 gui 05
 
Session 5 Bai 5 ve winform
Session 5 Bai 5 ve winformSession 5 Bai 5 ve winform
Session 5 Bai 5 ve winform
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
 
Ms Access
Ms AccessMs Access
Ms Access
 
Macros
MacrosMacros
Macros
 
Part 3 elements of windows
Part 3  elements of windowsPart 3  elements of windows
Part 3 elements of windows
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptx
 
Autocad raptor tutorial guide 2009
Autocad raptor tutorial guide 2009Autocad raptor tutorial guide 2009
Autocad raptor tutorial guide 2009
 
MIL-Module-16b-ien (1).pdf.PDF
MIL-Module-16b-ien (1).pdf.PDFMIL-Module-16b-ien (1).pdf.PDF
MIL-Module-16b-ien (1).pdf.PDF
 

Plus de mrtom16071980 (9)

Bai giang-ms-excel-2010
Bai giang-ms-excel-2010Bai giang-ms-excel-2010
Bai giang-ms-excel-2010
 
7314 l10 pwerpoint
7314 l10 pwerpoint7314 l10 pwerpoint
7314 l10 pwerpoint
 
hoc ve xml
hoc ve xmlhoc ve xml
hoc ve xml
 
Session 8 Bai 8 ve winform
Session 8 Bai 8 ve winformSession 8 Bai 8 ve winform
Session 8 Bai 8 ve winform
 
Session 4 Bai 4 ve winform
Session 4 Bai 4 ve winformSession 4 Bai 4 ve winform
Session 4 Bai 4 ve winform
 
Session 3 Bai 3 ve winform
Session 3 Bai 3 ve winformSession 3 Bai 3 ve winform
Session 3 Bai 3 ve winform
 
Session 2 Bai 2 ve winform
Session 2 Bai 2 ve winformSession 2 Bai 2 ve winform
Session 2 Bai 2 ve winform
 
Session 1. Bai 1 ve winform
Session 1. Bai 1 ve winformSession 1. Bai 1 ve winform
Session 1. Bai 1 ve winform
 
Session 7 Bai 7 ve winform
Session 7 Bai 7 ve winformSession 7 Bai 7 ve winform
Session 7 Bai 7 ve winform
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

Session 6 Bai 6 ve winform

  • 1. Session 6 Slide 1 of 1309/20/13 MDI Applications and Menus
  • 2. Slide 2 of 2609/20/13 Module Introduction Welcome 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
  • 3. Slide 3 of 2609/20/13 Document Interfaces An application can contain multiple forms, which are used for collecting and displaying varied information.
  • 4. Slide 4 of 2609/20/13 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;
  • 5. Slide 5 of 2609/20/13 MDI Child Forms The MDI child forms are the sub-forms that are opened within the parent form.
  • 6. Slide 6 of 2609/20/13 Properties, Methods, and Events
  • 7. Slide 7 of 2609/20/13 Menu System The menu system in Windows Forms consists of the main menu panel. The main menu panel consists of menu bars and various sub-menus.
  • 8. Slide 8 of 2609/20/13 Menu Structures There 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.
  • 9. Slide 9 of 2609/20/13 "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.
  • 10. Slide 10 of 2609/20/13 Properties, Methods, and Events The 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.
  • 11. Slide 11 of 2609/20/13 "ToolStripMenultem" Control The ToolstripMenuItern class provides various properties, which enable you to modify the appearance and functionality of a menu item.
  • 12. Slide 12 of 2609/20/13 "ContextMenuStrip" Control The 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.
  • 13. Slide 13 of 2609/20/13 "Menu" Class The Menu class allows you to create menus. This class is the base class for MainMenu, MenuItem, and ContextMenu classes.
  • 14. Slide 14 of 2609/20/13 "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.
  • 15. Slide 15 of 2609/20/13 "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.