Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 14 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
14
Dung lượng
1,78 MB
Nội dung
Lập trình trên Windows với Microsoft® .NET SDI Application SDI (1) New Document An SDI application can have only one active window at a time MDI Application MDI (2) Inner Window (or) Child Window Outer Window (or) Parent Window MDI Application Designing an MDI application IsMdiContainer = true MDI Application Activating and Deactivating Windows Deactivate child window Active child window MDI Application As in MDI form during design As 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 time Creating an instance of the MainMenu class at runtime MainMenu myMainMenu = new MainMenu(); this.Menu = myMainMenu; Main Menu PROPERTIES EVENTS Sel ec t P o p u p Click T e x t Sh o r tC u t PerformSelect P a r e n t Pe r fo r m C li ck METHODS Index ShowShortCut MenuItems 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 • ToggleButton ToolBar control icon as in ToolBox . Lập trình trên Windows với Microsoft® .NET SDI Application SDI (1) New Document An SDI application can have