202: CODE

CODE: Create a program than joins and displays strings. Submit via D2L.

1. Come to class as there may be corrections, changes and additions.   Significant late penalty per day.
2. Follow these directions to create a C# Windows program.  
3. Follow these directions to SUBMIT a zipped folder called "CODE"
4. Grading Sheet.
1. Interface (GUI) when program is started.
 
convert pic
2. Running the program, after data is input into textboxes.
 
convert pic
3. After pressing "Join Strings" - see output in txtOut. Note spacing.
 
convert pic
4. After clearing, entering new data in textBoxes and clicking button.
 
convert pic
5. After clearing, entering new data in textBoxes and clicking button. Space?
 
convert pic
6. Solution Explorer with form renamed.
 
convert pic
7. Partial code with comments.
 
convert pic
1. Create a Visual C# project: Windows Form Application - name the project 'CODE'. - browse to location to save it (desktop - default is "Documents/VisualStudio2012/Projects") 2. In Solution Explorer, right click on Form1.cs and rename to 'frmMain.cs' 3. Add THREE buttons and change these properties: a. change: Name to 'btnJoin' Text to 'Join Strings' BackColor to greenish b. change: Name to 'btnClear' Text to 'Clear' BackColor to blueish c. change: Name to 'btnExit' Text to 'Exit' BackColor to reddish 4. Add THREE textboxes and change these properties: a. change: Name to 'txtIn1' b. change: Name to 'txtIn2' c. change: Name to 'txtOut' MultiLine to True TextAlign to Center ReadOnly to True
Don't write code until you have everything named properly!!
5. Write Code to change Text property of the form to your name at execution time in frmMain_Load this.Text = "your actual name"; 6. Write code (and document) for the Click event of each button: a. btnClear: remove all text from textboxes - use the Clear() method to clear all THREE textboxes b. btnExit: exit program - 'this.Close()' method c. btnJoin (see examples) - declare THREE local string variables called 'str1', 'str2', and 'strOut' - store text from txtIn1 into the variable str1 - store text from txtIn2 into the variable str2 - combine str1 and str2 and store in strOut - display the contents of variables str1, str2 and strOut in txtOut as shown in the images ex: Bill + Jones = BillJones 7. ONLY USE "SAVE ALL" 8. Grading Sheet.
Issues naming saving - save all only do not "move to desktop" zip entire folder zip file size ~40k