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. Create a Visual Basic Windows application. Use the following names for the solution, project, and form fi le, respectively: Spanish Colors Solution, Spanish Colors Project, and Main Form.vb. Save the application in the VB2010\Chap04 folder. Create the interface shown in Figure 4-63. 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 button’s color. (Hint: Assign the button’s BackColor property to the text box’s 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 box. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here