Compartir a través de


Cómo: Establecer el contenido de texto de un control TextBox

Actualización: noviembre 2007

En este ejemplo se muestra cómo utilizar la propiedad Text para establecer el contenido de texto inicial de un control TextBox.

Ejemplo

<TextBox Name="tbSettingText">
  Initial text contents of the TextBox.
</TextBox>
tbSettingText.Text = "Initial text contents of the TextBox."
tbSettingText.Text = "Initial text contents of the TextBox.";

Vea también

Conceptos

Información general sobre TextBox

Información general sobre el control RichTextBox