Answer:
lblOutput.Text = txtUsername.Text;
See attachment for program interface
Step-by-step explanation:
This question is answered using C# windows forms application.
First, we need 2 labels, 1 textbox and 1 button to answer this question.
For this assignment, the following properties are set for the tools.
1. Textbox
Name: txtUsername
2. The first label (at the left of the textbox)
Name: lblUser
Text: Username
3. Button
Name: lblSubmit
Text: Submit
4. The second label (below the button)
Name: lblOutput
Text: -----
After these have been done, double-click on the button to create a click event and enter the following code:
lblOutput.Text = txtUsername.Text;
See attachment for program interface