Create a Windows application that contains a textbox for a persons name. Plan that the user may
Question:
Create a Windows application that contains a textbox for a person’s name. Plan that the user may enter only first and last name, or they may enter first, middle, and last names, or they may enter many parts to their name, as in Jr., Sr., II, or III. Disallow entries of single one word names.
If they enter a single first name, prompt them to enter their full name.
Include labels to store first, middle, and last names. Disregard names beyond three words. Two buttons should be included. Both should be positioned in the center of the form. They should overlap. One of the buttons should be used to retrieve the value and the second to reset the form. Initially only the Retrieve button should be displayed. When the Retrieve button is clicked, retrieve the full name, separate it into first, middle (if present), and last names and then display the labeled name values. At this point, the Reset button should be available. When the user clicks the reset button, the form should be readied for new entries.
Step by Step Answer:
C# Programming From Problem Analysis To Program Design
ISBN: 9781285856872
5th Edition
Authors: Barbara Doyle