Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Microsoft Visual Studio 2015 using C# Programming, how to code this: In a sep

ID: 3883979 • Letter: I

Question

In Microsoft Visual Studio 2015 using C# Programming, how to code this:

In a separate solution (give the solution a name that makes sense), I want you to create a form that simulates a traffic light, with three textboxes placed vertically on the form. Initially, the bottom text box is solid green and the other text boxes are dark gray. Ideally, 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. Unfortunately for you, ideal users are extremely rare. Therefore, when coding, I want you to account for the user breaking the tabbing pattern (i.e., assume that they can click a textbox out of order; your code should still respond appropriately, lighting up the text box they have chosen with the appropriate color). I also want you to create a functioning Exit button at the bottom of the form. This button should also be set as the form’s CancelButton (there is no need to set the form’s AcceptButton in this program).

Explanation / Answer

private Sub txtgreen_Enter(ByVal sender As System.
txtGreen.Backcolor = Color.Green
txtYellow.BackColor = Color.DarkGray
txtRed.BackColor = Color.DarkGray
End Sub


Private Sub txtYellow_Enter(ByVal Sender As System
txtGreen.BackColor = Color.DarkGray
txtYellow.BackColor = Color.Yellow
txtRed.BackColor = Color. DarkGray
End Sub


Private Sub txtRed_Enter(ByVal Sender As System.Ob
txtGreen.BackColor = Color.DarkGray
txtYellow.BackColor = Color.DarkGray
txtRed.BackColor = Color. Red
End Sub

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote