Lập trình trên Window cơ bản phần 8
Lập trình trên Windows với Microsoft® .NET Giảng viên : Hồ Hoàn Kiếm SDI ApplicationSDI (1)New DocumentAn SDI application can have only one active window at a time MDI ApplicationMDI (2)Inner Window (or)Child WindowOuter Window (or)Parent Window MDI ApplicationDesigning an MDI applicationIsMdiContainer = true MDI ApplicationActivating and Deactivating WindowsDeactivate child windowActive child window MDI ApplicationAs in MDI form during designAs with the control at runtime Main MenuDisplays a menu at runtimeMainMenu can be created in two ways:Using the MainMenu control, and menu designer at design timeCreating an instance of the MainMenu class at runtimeMainMenu myMainMenu = new MainMenu(); this.Menu = myMainMenu; Main MenuPROPERTIESEVENTSSelectPopupClickTextShortCutPerformSelectParentPerformClickMETHODSIndexShowShortCutMenuItems Context MenuContext menus give users access to frequently used commands by clicking the right mouse buttonContext menus are created with the help of the ContextMenu control ToolBarIt is situated immediately below the menu barThe buttons in a ToolBar are analogous to the items in a menu Different button appearance options:• DropDownButton• Separator• ToggleButtonToolBar control icon as in ToolBox . application can have only one active window at a time MDI ApplicationMDI (2)Inner Window (or)Child WindowOuter Window (or)Parent Window MDI ApplicationDesigning. Lập trình trên Windows với Microsoft® .NET Giảng viên : Hồ Hoàn Kiếm SDI