Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Warren

Question:

Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Warren Solution and Warren Project. Save the application in the VB2015\Chap01 folder.

a. Change the form file’s name to Main Form.vb.

b. Change the form’s name to frmMain. Change its Font property to Segoe UI, 9pt. The form’s title bar should say Warren Fire Department; set the appropriate property. The form should be centered on the screen when it first appears; set the appropriate property.

c. Add a label control to the form. The label should contain the text “We put out fires!” (without the quotation marks); set the appropriate property. Display the label’s text in italics using the Segoe UI, 16pt font. The label should be located 20 pixels from the top of the form, and it should be centered horizontally on the form.

d. Add a picture box control to the form. The control should display the image stored in the VB2015\Chap01\FireTruck.png file. (The image is provided courtesy of OpenClipArt.org/rdevries.) Set the picture box’s size mode to StretchImage. Change the size of the picture box to 170, 140. Center the picture box on the form, both vertically and horizontally.

e. Add a button control to the form. Position the button in the lower-right corner of the form. Change the button’s name to btnExit. The button should display the text “Exit” (without the quotation marks); set the appropriate property.

f. Open the Code Editor window. Enter the Me.Close() instruction in the btnExit control’s Click event procedure.

g. Display the Project Designer window. Verify that the name of the startup form is frmMain. Also, use the Assembly name box to change the executable file’s name to Warren. Close the Project Designer window.

h. Save the solution and then start the application. Use the Exit button to stop the application. Close the Code Editor window and then close the solution.

i. Use Windows to open the project’s bin\Debug folder, and then run the project’s executable file.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: