Open the Colors Solution.sln file contained in the VB2017Chap01Colors Solution folder. If necessary, open the designer window.

Question:

Open the Colors Solution.sln file contained in the VB2017\Chap01\Colors Solution folder. If necessary, open the designer window. The interface contains one label control and two buttons. You can use a label control to display information that you do not want the user to change during run time. You will learn more about label controls in Chapter 2.
a. Add two buttons to the form, as shown in Figure 1-39, and then lock the controls on the form. Change the names of the buttons to btnGreen and btnRed; also change their Text properties.

b. Open the Code Editor window, which contains comments and the code for the btnBlue_Click and btnExit_Click procedures. The btnBlue_Click procedure assigns the string literal “Azul” to the Text property of the lblSpanish control. Start the application. Click the Blue button; the word Azul appears in the label control on the form. Click the Exit button.
c. Using the btnBlue_Click procedure as a guide, code the Click event procedures for the btnGreen and btnRed controls. (Hint: The Spanish words for Green and Red are Verde and Rojo, respectively.)
d. Save the solution and then start and test the application.

ag Colors in Spanish Blue IblSpanish btnGreen Green btnRed Red Exit

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

Step by Step Answer:

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