Question
Create a new WPF application and name it WPF1. Design your form however you want with what colors you want, do change a few of
Create a new WPF application and name it WPF1. Design your form however you want with what colors you want, do change a few of the colors just so you know how. You will need to design a form that will allow the user to enter their name, their address and their zipcode. There should also be a ListBox control on your form, that we will be using to keep track of all of our applications that have been submitted. Once they have done this, they should have a button to click in order to submit their application. Upon submission, you should get the values from the proper controls and then create a new instance of the EntryForm class (that is defined below) and set all the values of the object appropriately. After creation of your object, add it to your ListBox.
MSDN ListBox : https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.listbox?view=netframework-4.7.2 (Links to an external site.)
EntryForm | |
+ + + | Name : string Address : string ZipCode : int |
+ + + | EntryForm( ) EntryForm( name : string, address : string, zipCode : int ) override ToString ( ) : string |
- Constructors should set all of the default values appropriate for their datatype.
- The ToString method is funny. Start off with the access modifier value then type override. We are going to be overriding (or replacing) an already existing method. This method should create a string that represents our instance (so use some nice concatenation with all of our instance variables) and then return that value.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started