225k views
23 votes
create a windows application that can be used to input a user's name. Include an appropriate label indicator for the name and a textbox for the input entry. A buttton labeled submit should retrieve and display the value enterd on another label positioned near the bottom of the form

User Hover Ruan
by
3.9k points

1 Answer

4 votes

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

create a windows application that can be used to input a user's name. Include an appropriate-example-1
User Ji Fang
by
3.0k points