Create an MDI application

Assignment Help Visual Basic Programming
Reference no: EM132324237

Assignment - Exercises for Murach's Visual Basic - Create an MDI application

In this exercise, you'll create an application with a multiple-document interface that consists of a parent form and two child forms.

Open the project and add a parent form

1. Open the CalculateFlooringCosts project in the CalculateFlooringCostsMDI directory. Then, review the code for the Carpeting Costs and Hardwood Costs forms so you understand how they work.

2. Add a form to the project, and set the IsMdiContainer property of this form to True to identify it as the parent form. Resize the form so it's large enough to hold several child forms, and use the Application page of the Project Designer to change the startup form to the new form.

Add the File menu to the parent form

3. Add a MenuStrip control to the parent form. Then, use the Menu Designer to add a File menu to the parent form. This menu should include four menu items that display a Carpeting Costs form, display a Hardwood Costs form, close the active child form, and exit from the application. Give each menu item an appropriate name, include access keys for the menu and menu items, and include a separator bar between the Close and Exit items.

4. Add an event handler for the Click event of each item in the File menu. The event handlers for the New Carpeting Costs and New Hardwood Costs items should create a new instance of the appropriate form, set the parent form to the current form, and display the form. The event handler for the Close item should close the active child form, if there is one. And the event handler for the Exit item should exit from the application.

5. Change the Exit buttons on the Carpeting Costs and Hardwood Costs forms to Close buttons, and change the StartPosition property of these forms to WindowsDefaultLocation.

6. Test the application to be sure that the items in the File menu work as expected.

Add the Window menu to the parent form

7. Add a Window menu to the right of the File menu. Then, add three items to this menu that will let the user arrange the forms in a cascaded, vertical, or horizontal layout.

8. Give each item in the Window menu an appropriate name, and then add an event handler for the Click event of each item that arranges the child forms appropriately.

9. Set the MdiWindowListItem property of the menu strip so the Window menu will display a list of the open child forms.

10. Test the application to be sure that the items in the Window menu work as expected.

Add a toolbar to the parent form

11. Add a ToolStrip control to the parent form. Then, add two buttons to this toolbar with the text "Carpeting Costs" and "Hardwood Costs" on them. Be sure to assign appropriate names to these buttons.

12. Add an event handler for the Click event of each button that uses the Click event handler for the associated menu to display the form.

13. Test the application to be sure that the toolbar buttons work.

Add a status bar to the parent form

14. Add a StatusStrip control to the parent form. Then, add a single ToolStripStatusLabel control to the status bar.

15. Add a module-level variable to the parent form to store the count of child forms, and give this variable an initial value of 0. Add code to increase or decrease the value of this variable each time a new form is opened or closed.

16. Add a procedure named DisplayFormCount that sets the Text property of the ToolStripStatusLabel control to "Number of child forms currently displayed: " appended with the current form count. Then, add code to call this procedure when the form is loaded and each time the form count changes.

17. Test the application to be sure that the form count is displayed properly.

Add tooltips and context-sensitive help to the child forms

18. Add a ToolTip control to each child form. Then, add a tooltip for each text box, check box, and radio button on these forms. For the check box and radio buttons, you should display the cost associated with selecting that control.

19. Add a HelpProvider control to each child form. Then, add context-sensitive help for the Area text box on each form that explains how to calculate the area (length in feet x width in feet).

20. Add context-sensitive help for each form that describes what the form does.

21. Test the application to be sure that the tooltips and context-sensitive help are displayed.

Attachment:- Assignment Files.rar

Verified Expert

In this assignment we have created the menu strip and modified the forms as per requirements. Here I have added the status bar which shows the number of objects forms in the MDI parent. Here we have written code for form property like cascading horizontal and vertical.

Reference no: EM132324237

Questions Cloud

What do the marginal probabilities tell you about : What is the probability that a patient who takes the drug will experience relief of at least one of the two symptoms - Develop a joint probability table
Specify the hash algorithm you plan to use : As part of the duties of a digital forensics examiner, creating an investigation plan is a standard practice. Write a 3 to 4 (not including title or reference).
Explaining how you should proceed in the given situation : A mother calls you to report that her 15-year-old daughter has run away from home. She has access to her daughter's e-mail account and says her daughter has.
Creating a signage and way finding concept : DESI 348 Graphic Design for Architects Assignment - Way-finding/Signage Concept, Canadian University Dubai, UAE. Creating a signage and way finding concept
Create an MDI application : In this exercise, you'll create an application with a multiple-document interface that consists of a parent form and two child forms
Determine which philosophy is reflected by the goals : Analyze the major philosophies described in the textbook (e.g., idealism, realism, etc.). Then discuss three primary goals of the school district.
Summarize the evaluation outcomes : Summarize the evaluation's outcomes and any recommendations made in the evaluation. Would you include other recommendations that came from the same data.
Compare similarities-parametric and nonparametric analyses : Compare the similarities and differences of parametric and nonparametric analyses in the context of data assumptions. Provide at least one example.
Define working memory and executive functions : In Chapters 3 and 4 of your primary text, Farrar and Montgomery discuss executive functioning and memory development (2015), and the factors that influence.

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Write a menu-driven program to manage a membership list

Write a menu-driven program to manage a membership list. Assume that the names and phone numbers of all members are stored in alphabetical order (by last name and then by first name) in the text file MemberPhones.txt. Each record consists of two fi..

  Prepare a vb application for the subsequent math application

Prepare a VB application for the subsequent Math Application - The problems displayed for the students into two levels.

  What additional modification would you suggest making script

Describe a real words scenario, how these scripts may be useful. Discuss what additional modification would you suggest making these scripts more user-friendly.

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

  Using visual basic to create a webpage that has functions

You need a form where you can add brownie points to their total points when they have done something great, or deduct points when necessary.

  Create desktop software by using visual studio

You need to create desktop software by using Visual studio and need to create database as well and then link it with each other and create it real software

  Technical project designing vb applications across multiple

technical project designing vb applications across multiple platformsthis assignment will contain two 2 parts written

  Main objectives of the assessmentnbspthe aim of the

main objectives of the assessmentnbspthe aim of the assessment is to develop a visual basic console application that

  Perform the character shift encryption and decryption

Referencing Project, instantiate an encryption class to perform the character shift encryption and decryption. Include clsSecurity.vb in your Project (see the Solution Explorer in the Visual Studio IDE)

  Create a wireframe of the ui

Create a wireframe of the UI that shows the inputs and outputs (textboxes) and initiators (buttons) within the form and create a storyboard that shows the sequence of events for calculation of a load payment.

  Create the charts to graphically display data in worksheet

Create the following charts to graphically display the data in the worksheet: A column chart that will allow you to compare projected sales amounts between each of the restaurants for each month (the months as the x-axis).

  Write visual logic program for customer-s bank account

Write a visual logic program to aid balance a customer's bank account. the program must read numeric values that represent banking transactions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd