Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Wrap a text in a notepad file with C#.Net 2008?

Wrap a text in a notepad file with C#.Net 2008?

Scheduled Pinned Locked Moved C#
csharphelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Varun Sareen
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • V 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

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      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

      V 1 Reply Last reply
      0
      • D DaveAuld

        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

        V Offline
        V Offline
        Varun Sareen
        wrote on last edited by
        #3

        Thanks Dave

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups