tailieunhanh - Session 4: MDI Applications

Different Print support controls supported by Win Forms are: PrintDocument, PrintPreviewControl. A Dialog box is a temporary window that contains controls to display information or accept choices from use. Depending on the nature of behavior, a dialog box may be classified as: Modal and Modeless. | Session 4 MDI Applications Review Different Print support controls supported by Win Forms are: PrintDocument PrintPreviewControl A Dialog box is a temporary window that contains controls to display information or accept choices from use. Depending on the nature of behavior, a dialog box may be classified as: Modal and Modeless OpenFileDialog : Used to open files. PageSetUpDialog : Used to set the Page options such as Paper size, Left margin and Right margin. FontDialog : Used to specify the font specifications such as the font name, size and color. Review Contd ColorDialog : Used to select a color. Displays a wide variety of colors and allows us to select from those displayed colors. SaveFileDialog : Used to specify the filename and save files. PrintPreviewDialog : Used to view how the document would look after printing. PrintDialog : Used to set print specifications such as number of copies, the printer and what is to be printed. The MessageBox dialog is used to display messages. . | Session 4 MDI Applications Review Different Print support controls supported by Win Forms are: PrintDocument PrintPreviewControl A Dialog box is a temporary window that contains controls to display information or accept choices from use. Depending on the nature of behavior, a dialog box may be classified as: Modal and Modeless OpenFileDialog : Used to open files. PageSetUpDialog : Used to set the Page options such as Paper size, Left margin and Right margin. FontDialog : Used to specify the font specifications such as the font name, size and color. Review Contd ColorDialog : Used to select a color. Displays a wide variety of colors and allows us to select from those displayed colors. SaveFileDialog : Used to specify the filename and save files. PrintPreviewDialog : Used to view how the document would look after printing. PrintDialog : Used to set print specifications such as number of copies, the printer and what is to be printed. The MessageBox dialog is used to display messages. Some of the Visual Effects supported in WinForms : Transparent Forms Control Docking Control Anchoring Visual Inheritance Objectives Differentiate between SDI and MDI Create an MDI application Create Menus and Menu Components Discuss the ToolBar and StatusBar controls Create User defined dialog boxes SDI File New Document An SDI application can have only one active window at a time Active Window Closed Drawbacks of using SDI Cannot handle multiple forms at the same time Multiple copies of the application have to be opened to handle multiple forms at the same time MDI Multiple documents MDI applications group multiple documents as a single unit A window is the base for all interfaces MDI applications handle multiple windows simultaneously MDI Contd New Document Inner Window (or) Child Window Outer Window (or) Parent Window Design an MDI application IsMdiContainer = true Property To add a child form to the MDI form: Add a new form Add the code to call the child form Characteristics of MDI