Home > front end >  GetValue of TextBox
GetValue of TextBox

Time:11-06

Project Informations

  • Windows Presentation Foundation Project
  • C# as programming language

Description

How I can get the value from the Textbox with GetValue()?

When I run GetValue(TextBox) the following error will be printed:

"TextBox" is a "Typ" and not available in this Context

CodePudding user response:

TextBox is the type (class). You need an object of that type.

TextBox  _myTextBox = new TextBox();
// :
// :

string text = _myTextBox.Text;
  • Related