Z
zacks
I am developing a C#.NET application in VS2005 that needs a function
that allows the user to edit some text content stored in a Text column
in a database. I have a TextBox control with AcceptsReturn, AcceptsTab
and MultiLine properties all set to True.
When I set the Text property of the control to the string returned
from the database and show the form, the content in the textbox isn't
"formatted". All newlines appear as a funky undisplayable character
and does not cause the content following it to appear on the next
line. I dumped the content returned from the database to the Command
window, and it definitely has "\r"'s all through it.
How do I get the text content to appear the same as it would if loaded
into, say, a Notepad window?
that allows the user to edit some text content stored in a Text column
in a database. I have a TextBox control with AcceptsReturn, AcceptsTab
and MultiLine properties all set to True.
When I set the Text property of the control to the string returned
from the database and show the form, the content in the textbox isn't
"formatted". All newlines appear as a funky undisplayable character
and does not cause the content following it to appear on the next
line. I dumped the content returned from the database to the Command
window, and it definitely has "\r"'s all through it.
How do I get the text content to appear the same as it would if loaded
into, say, a Notepad window?