Lập trình trên Window cơ bản phần 8

14 471 0
Lập trình trên Window cơ bản phần 8

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

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 MenuDisplays a menu at runtimeMainMenu 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 MenuContext menus give users access to frequently used commands by clicking the right mouse buttonContext menus are created with the help of the ContextMenu control ToolBarIt is situated immediately below the menu barThe 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

Ngày đăng: 01/10/2012, 15:18

Tài liệu cùng người dùng

Tài liệu liên quan