Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Microsoft Visual Studio CH 7 Exercise 5. Open the Color Solution.sln file contained in the VB2107Chap07Color Solution folder. The btnDisplay_Click procedure should display the color

Microsoft Visual Studio CH 7 Exercise 5.

Open the Color Solution.sln file contained in the VB2107\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 number: 12b34, abr73, n6gtn, and 12w87.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions