Question: In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of

In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy Proper Case Solution-Hyphenated. Open the Proper Case Solution.sln file contained in the Proper Case Solution-Hyphenated folder. Start the application. Type “carol mason-smith” (without the quotes) as the name and then click the Proper case button. The btnProper_Click procedure displays “Carol Mason-smith”. Click the Exit button. Modify the procedure to display hyphenated names in proper case; for example, the procedure should display “Carol Mason-Smith”. Save the solution and then start and test the application. Be sure the application works correctly if the user inadvertently enters “carol mason-” (notice the hyphen at the end of the entry).


Data from Exercise 6.

Open the Proper Case Solution.sln file contained in the VB2017\Chap07\Proper Case Solution folder. The interface provides a text box for entering a person’s first and last names. The btnProper_Click procedure should display the first and last names in the proper case. In other words, the first and last names should begin with an uppercase letter and the remaining letters in each name should be lowercase. If the user enters only one name, display the name in proper case. Be sure the btnProper_Click procedure works correctly if the user inadvertently enters more than one space between the first and last names. After displaying the name, the procedure should send the focus to the txtName control. Code the procedure. Save the solution and then start and test the application. (If the user enters “john smith” as the name, the application should display “John Smith”. If the user enters “carol” followed by three spaces and then “jones”, the application should display “Carol Jones”. If the user enters three spaces followed by “jack” and another three spaces, the application should display “Jack”.)

Step by Step Solution

3.46 Rating (172 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 15 VisualStudioVers... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

1814_60b8c12285b2b_823595.pdf

180 KBs PDF File

Word file Icon

1814_60b8c12285b2b_823595.docx

120 KBs Word File

Students Have Also Explored These Related Programming Microsoft Visual Basic Questions!