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

Respuesta :

Answer:

C) lblDisplay.Text = txtInput.Text

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

ACCESS MORE
EDU ACCESS