L
L
libera2016-03-06 23:22:44
WPF
libera, 2016-03-06 23:22:44

WPF textbox removing spaces?

foreach (var node in game)
            {
                string str = node.InnerText;
                str = str.Replace(" ", string.Empty);
                textBox2.Text = str;
           }

I've tried deleting it, but it doesn't work. It happens that the word is transferred to the bottom several lines, and it does not delete the lines, but how to leave only the letters, but delete everything else.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2016-03-06
@Rikcon

stackoverflow.com/questions/6219454/efficient-way-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question