Question: Using basic Visual Basic coding, Simulate a traffic light with three small square text boxes placed vertically on a form. Initially, the bottom text box
Using basic Visual Basic coding, Simulate a traffic light with three small square text boxes placed vertically on a form. Initially, the bottom text box is solid green and the other text boxes are dark gray. When the Tab key is pressed, the middle text box turns yellow and the bottom text box turns dark gray. The next time Tab is pressed, the top text box turns red and the middle text box turns dark gray. Subsequent pressing of the Tab key cycles through the three colors. Hint: Make sure TabIndex order is properly set on each control.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
