Wrap a text in a notepad file with C#.Net 2008?
-
Dear Friends, I want to wrap the text that i am entering into the notepad file being generated with the help of C#.Net2008, but not able to find any method, property for the same. Like if the entered text reaches the end of the screen visible to user (while maximize of a notepad) then the cursor moves to the next line. Could any one help me in this regard? Thanks Varun Sareen
-
Dear Friends, I want to wrap the text that i am entering into the notepad file being generated with the help of C#.Net2008, but not able to find any method, property for the same. Like if the entered text reaches the end of the screen visible to user (while maximize of a notepad) then the cursor moves to the next line. Could any one help me in this regard? Thanks Varun Sareen
You need to write a CR and LF to the text at the point you want it to wrap. If you want it to wrap at a point dependent on the width of the notepad window, then turn on WordWrap in notepad, and don't put any CRLF in your written output.
Dave Find Me On: Web|Facebook|Twitter|LinkedIn My Latest Article: ESD System Communication Failure Fail Safe Software Implementation
-
You need to write a CR and LF to the text at the point you want it to wrap. If you want it to wrap at a point dependent on the width of the notepad window, then turn on WordWrap in notepad, and don't put any CRLF in your written output.
Dave Find Me On: Web|Facebook|Twitter|LinkedIn My Latest Article: ESD System Communication Failure Fail Safe Software Implementation
Thanks Dave