MultilineTextBox to String...
-
Hey Guys, how can I convert a Multiline textbox to a one lined string? textbox.text is: "A \r\n \t AB \r\n \t AC \r\n B" and so on... I want a string like that: "A AB AC B ..." I found the "MultilineStringConverter"- Class but I didn't understand how to use it... :confused: hope you can help me, greets :rose:
-
Hey Guys, how can I convert a Multiline textbox to a one lined string? textbox.text is: "A \r\n \t AB \r\n \t AC \r\n B" and so on... I want a string like that: "A AB AC B ..." I found the "MultilineStringConverter"- Class but I didn't understand how to use it... :confused: hope you can help me, greets :rose:
Try something like:
string text = textbox.Text.Replace("\r\n", string.Empty);
Tychotics: take us back to the moon "Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars." H. G. Wells
-
Try something like:
string text = textbox.Text.Replace("\r\n", string.Empty);
Tychotics: take us back to the moon "Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars." H. G. Wells