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

  Create a visual basic windows application

Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Novelty Solution, Novelty Project, and Main Form.vb.

  Object-orientated programming with access vba

CPT323 VBA, The Internet and Microsoft Office - Create a method in the Books class called FindBook. The FindBook method should take in an ISBN

  Performing a calculation on that value

Individual Visual Logic Calculations. Select two to three Each task must include the following Inputing a value. Performing a calculation on that value. outputting the value. produce Visual Logic files to execute each of these steps.

  Mr kindly do this estimate with your designing excel visual

kindly do this estimate with your designing excel visual basic software that shows diagram of holes and angle of

  Accept data regarding the purchase of fruit

Continually accept data regarding the purchase of fruit until a sentinel value is entered. Prompt the user for each item, and accept the name of the fruit (e.g., "dried apples"), the price per pound, and the number of pounds sold in a month

  Create user interface similar to one pictured in this link

Use a second group of RadioButton controls to select whether a student handed in the assignment on time, with the default being

  An analysis of a group of weight measurements

An analysis of a group of weight measurements involves converting a weight value into an integer category number that is determined as follows

  Write code in vba to determine the row number

Write code in VBA to determine the row number of the last row with data. Are there any precautions/edge cases to be aware of for that code

  The user should be asked whether he or she wants to exit

Include appropriate shortcut keys for all commands. After the Perform Action command executes, the program should display the results in a message box. The message box should display results for each row or column separated by a ControlChars.NewLi..

  Create a microsoft word macro using vba

Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will allow a user to quickly scan across th..

  Define the cloud computing and social networking tools

Cloud computing Social networking tools

  Create a well-formed resume in xml for a fictional person

Create a well-formed resume in XML for yourself or a fictional person. It should be very short but include tags for name, address, phone number, qualifications, at least three jobs, and at least 2 previous educational achievements

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