Description
Clearly Visual Basic Programming with Microsoft Visual Basic 2012 5th Edition Chapter 4 Exercise 9 Spanish Colors Solution
In this exercise, you create an application designed to teach the Spanish words for red, blue and green. The Spanish words are rojo, azul, and verde, respectively. Create a Visual Basic Windows application. Use the following names for the solution and project respectively: Spanish Colors Solution and Spanish Colors Project. Save the application in VB2012\Chap04 folder. Change the form file’s name to Main Form.vb. Change the forms name to frmMain. Create the interface shown in Figure: 4-59. The interface contains three text boxes, five buttons, and one label. After entering the Spanish word corresponding to a button’s color, the user should click the button to verify the entry. If the Spanish word is correct, the button’s Click event procedure should change the color of the text box to match the buttons color. (Hint: Assign the button’s BackColor property to the text box BackColor property.) Otherwise, the Click event procedure should display the appropriate Spanish word in a message box. The Clear button should change each text box’s background color to white, using the Visual Basic constant Color.White; it also should clear the contents of each text vox. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.
Reviews
There are no reviews yet.