This document provides instructions for creating a basic MDI (Multiple Document Interface) application in VB. It involves:
1) Creating an MDI parent form and setting its caption and name properties
2) Creating an MDI child form and setting its caption, name, and MDIChild properties
3) Setting the startup object to the MDI parent form
4) Adding a menu to the parent form using the menu designer
5) Adding code to the menu click event to instantiate and show the child form
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
142 views2 pages
MDI Form: VB Program For Creating MDI Application
This document provides instructions for creating a basic MDI (Multiple Document Interface) application in VB. It involves:
1) Creating an MDI parent form and setting its caption and name properties
2) Creating an MDI child form and setting its caption, name, and MDIChild properties
3) Setting the startup object to the MDI parent form
4) Adding a menu to the parent form using the menu designer
5) Adding code to the menu click event to instantiate and show the child form
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
MDI Form
VB program for creating MDI application
This is an application program, that demonstrates about MDI application 1. Start a new project by selecting file->new project. Select standard EXE as the project type if you have the project wizard enabled. 2. You will already a have a form in the project. Set its name property to formchild and its caption property to MDI child. 3. To create the MDI parent form, right click the forms folder in the project Explore and select add ->MDI form. If the form wizard appears, select MDI form. 4. Set the name property to formMDI and the caption property to MDI parent to MDI parent. 5. Right click project1 in the project Explorer and select project1 properties from the top-up menu. Set the startup object list to form MDI. If you omit this, the application will start with the child form showing. 6. Select form child from the project Explorer. Set the forms MDI child property to true. This will case this form, which is the child, to rest inside of the MDI parent container. 7. Select form MDI the project Explorer. 8. Start the menu designer by selecting tools->Menu Editor. You will see a window like the one in 9. Type & file in the caption field. 10. in the name field, type menufile. 11. Click the next button. 12. Click the arrow right button. 13. Enter & new in the caption field. 14. in the name field, type menunew. 15. Click the ok button to close the Menu Editor. 16. The form MDI from should now have a file menu on it. Select file ->New from the MDI menu. this will open up the window. 17. In the private sub menu file New-click () event, type the following lines of code: 18. Save and Run the project. PARENT FORM: CHILD FORM:
CODING: Private Sub menunew_Click (Index As Integer) Dim Form As New formchild Form.Show End Sub