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. Wrapping a text in textbox

Wrapping a text in textbox

Scheduled Pinned Locked Moved C#
question
5 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.
  • A Offline
    A Offline
    anu81
    wrote on last edited by
    #1

    hi all, I have a panel which contains a picturebox and two textboxes. in one of the textbox, some large content is to be displayed. this content is dynamic and i want the textbox to wrap the text accordingly. i set the textbox multiline property to true and also set wordwrap=true. inaddition i set the acceptsreturn=true. but still the text is not wrapped. how can i achieve this?

    Thanks in advance.:) Regards Anuradha

    M 1 Reply Last reply
    0
    • A anu81

      hi all, I have a panel which contains a picturebox and two textboxes. in one of the textbox, some large content is to be displayed. this content is dynamic and i want the textbox to wrap the text accordingly. i set the textbox multiline property to true and also set wordwrap=true. inaddition i set the acceptsreturn=true. but still the text is not wrapped. how can i achieve this?

      Thanks in advance.:) Regards Anuradha

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      anu81 wrote:

      how can i achieve this?

      Try to enter the real paragraph.. sometimes, people used to entry "aaaaaaaaaaaaaaaaa" or something with space . this is wrong. So, try to enter the real paragraph (maybe, copy from news or somewhere) and see whether it works or not..

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

      A 1 Reply Last reply
      0
      • M Michael Sync

        anu81 wrote:

        how can i achieve this?

        Try to enter the real paragraph.. sometimes, people used to entry "aaaaaaaaaaaaaaaaa" or something with space . this is wrong. So, try to enter the real paragraph (maybe, copy from news or somewhere) and see whether it works or not..

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

        A Offline
        A Offline
        anu81
        wrote on last edited by
        #3

        hi, i am actually trying with a real paragraph which is obtained dynamically. when i put a dummy paragraph and tested its working fine. but when i put the dynamic content which contains more paragraphs, the text is not wrapped properly. Any ideas? and thanks for the response. Regards Anuradha

        M 1 Reply Last reply
        0
        • A anu81

          hi, i am actually trying with a real paragraph which is obtained dynamically. when i put a dummy paragraph and tested its working fine. but when i put the dynamic content which contains more paragraphs, the text is not wrapped properly. Any ideas? and thanks for the response. Regards Anuradha

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          What about trying the dynamic content as a static content? For example: You store the text in database, right? so, copy this text and pasted in HTML. check whether it is wrapped properly or not. or you can show us the content that you stored in database. then, we can test in our side and will let you know the result..

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

          A 1 Reply Last reply
          0
          • M Michael Sync

            What about trying the dynamic content as a static content? For example: You store the text in database, right? so, copy this text and pasted in HTML. check whether it is wrapped properly or not. or you can show us the content that you stored in database. then, we can test in our side and will let you know the result..

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

            A Offline
            A Offline
            anu81
            wrote on last edited by
            #5

            hi, Thanks so much for your help. i got it working now. i had added the picturebox and two textboxes during design time. now i added them at runtime and set the all properties again. now its working fine although i have a vertical scrollbar for the textbox. but without that the panel becomes so big so its better i have the vertical scrollbar. thanks once again for your help. Regards Anuradha

            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