Open the Color Solution.sln file contained in the VB2017Chap07Color Solution folder. The btnDisplay_Click procedure should display the

Question:

Open the Color Solution.sln file contained in the VB2017\Chap07\Color Solution folder. The btnDisplay_Click procedure should display the color of the item whose item number is entered by the user. All item numbers contain exactly five characters. All items are available in four colors: blue, green, red, and white. The third character in the item number indicates the item’s color, as follows: B or b indicates Blue, G or g indicates Green, R or r indicates Red, and W or w indicates White. The procedure should display an appropriate error message if the item number does not contain exactly five characters. It should also display an appropriate message if the third character is not one of the valid color characters. Before ending, the procedure should send the focus to the txtItem control. Code the procedure. Save the solution and then start the application. Test the application using the following invalid item numbers: 123, 12345, 123456, and 12Y45. Then, test it using the following valid item numbers: 12b34, abr73, n6gtn, and 12w87.

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

Step by Step Answer:

Question Posted: