H
H
Hirty2016-05-23 19:21:47
WPF
Hirty, 2016-05-23 19:21:47

Textbox delete line and split into 2 parts?

The text of the form
Hello1:Hello2
Hell3:Hello4
Hell5:Hello6 is loaded into the Textbox
It needs to be divided into 2 parts.
string A = Hello1
string B = Hello2
Delete 1 line after loading.
How to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tsiren Naimanov, 2016-05-23
@ImmortalCAT

var strs[] = TextBox.Text.Split(':');
strs array of strings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question