In this exercise, you create an application designed to teach the Spanish words for red, blue, and green.?

Glory

New member
The Spanish words are rojo, azul, and verde. Create a Visual Basic Windows Application. Use the following names for the solution, project, and form file, respectively: Spanish Colors Solution, Spanish Colors Project, and Main Form.vb. Save the application in the VB2010\Chapter04 folder. Create the interface shown in Figure 4-63. The interface contains three text boxes, five buttons, and one level. 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 textbox to match the button's color. 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 content of each text box.
 
Back
Top