0
Answer

How to persist whitespaces from TextBox control ?

Girish Keskar

Girish Keskar

18y
1.6k
1

I am reading string from a textbox control with multiline propery=true and with vertical scrollbar.
The characters entered from this textbox (along with whitespaces), I am storing it in a string which is serialized and persisted on hard disk.
Next time when I read this string into similar another textbox, all the whitespaces are lost and I can see all characters in single line without the whitespaces.

How to persist the whitespaces from textbox ?