2
2
27_Halt2014-06-23 16:45:47
WPF
27_Halt, 2014-06-23 16:45:47

How to extract data from textbox in c#?

Good evening! Necessity forced me to
study C# and XAML .
So now I would sculpt something on js, and I would be happy.
But I was impatient to make a simulator of one complex physical process.
JS , of course, is not suitable for this purpose - the application must be made desktop.
WinForms, as a morally obsolete technology, was not used.
Settled on WPF.
In the application, I have a bunch of TextBoxes for data entry.
The task: to pull out the data from TextBox'ov and to write down in variables.
As I understand it, each TextBox must have a name, and the values ​​of each text field must be extracted in the code.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CAMOKPYT, 2014-06-23
@27_Halt

var text = TextBox1.Text

A
Artem Ivantsov, 2014-08-19
@Ramirag

You need to buy a book on WPF and study it inside and out, otherwise you will have such questions endlessly. And after the book, read about MVVM to use WPF correctly. I recommend this one , and you might also want to read a book on C# and .NET . I already killed these books, especially on WPF.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question