1 / 8

UNIT-II CREATING AND USING COMMON CONTROLS

UNIT-II CREATING AND USING COMMON CONTROLS. PART-IV. Multiple Document Interface (MDI). The Multiple Document Interface (MDI) was designed to simplify the exchange of information among documents.

dorn
Download Presentation

UNIT-II CREATING AND USING COMMON CONTROLS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UNIT-IICREATING AND USING COMMON CONTROLS PART-IV

  2. Multiple Document Interface (MDI) • The Multiple Document Interface (MDI) was designed to simplify the exchange of information among documents. • With the main application, we can maintain multiple open windows, but not multiple copies of the application. Data exchange is easier when you can view and compare many documents simultaneously. • The main Form, or MDI Form, isn't duplicated, but it acts as a container for all the windows, and it is called the parent window. The windows in which the individual documents are displayed are called Child windows.

  3. The main Form, or MDI Form, isn't duplicated, but it acts as a container for all the windows, and it is called the parent window. The windows in which the individual documents are displayed are called Child windows. • In MDI application must have at least two Form, the parent Form and one or more child Forms. Each of these Forms has certain properties. There can be many child forms contained within the parent Form, but there can be only one parent Form. • The parent Form may not contain any controls. While the parent Form is open in design mode, the icons on the ToolBox are not displayed, but you can't place any controls on the Form. The parent Form can, and usually has its own menu.

  4. To create an MDI application, follow these steps: • Start a new project and then choose Project >>> Add MDI Form to add the parent Form. • Set the Form's caption to MDI Window • Choose Project >>> Add Form to add a SDI Form. • Make this Form as child of MDI Form by setting the MDI Child property of the SDI Form to True. Set the caption property to MDI Child window. • Visual Basic automatically associates this new Form with the parent Form. This child Form can't exist outside the parent Form; in the words, it can only be opened within the parent Form.

  5. Features of the Parent form  • Displayed as soon as the MDI application started • Acts as the container for other windows • Menus of the child form are displayed on the parent form • Can only be one MDI parent form • Multiple child forms can be open at a time • The child forms can not be moved out of the MDI frame area • Closing the MDI form automatically closes all open MDI child forms • The top most window is the Active window • The color of the title bar of an active window is the same as that of the MDI window

  6. Advantages of MDI MDI applications can often handle multiple documents more readily than SDI programs. For example, many MDI text editors allow the user to open multiple text files side by side in the same window, making it easy to compare and look up information from a second document while working on the first.

More Related