180k views
2 votes
Which of the following statements will assign the contents of the Text property of a Textbox control named txtInput into the Text property of a label control named lblDisplay?

A) txtInput.Text = lblDisplay.Text

B) lblDisplay = txtInput

C) lblDisplay.Text = txtInput.Text

D) txtInput = lblDisplay

1 Answer

2 votes

Answer:

C) lblDisplay.Text = txtInput.Text

Step-by-step explanation:

A TextBox control is used to display, or accept as input, a single line of text, while the label control is generally used to display some informative text on the GUI which is not changed during runtime.

The lblDisplay acts as the variable which accepts input from users through the txtIput

User David Carney
by
7.2k points