Lines will be displayed without wordwrap

4 posts, 0 answers
  1. Hardy
    Hardy avatar
    9 posts
    Member since:
    Oct 2012

    Posted 10 Jul 2015 Link to this post

    Hi all,

    I have setup a TextBox with multiline=True.

    Setting the Text-Property or the Lines-Property does not display the MultiLineText in correct way.

    The text is displayed without wordwrap.

     

    Is there another Property set to be True?

     

    Regards

  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 Jul 2015 Link to this post

    Hello Hardy,

    Thank you for writing.

    Can you please provide a sample demonstrating the undesired behavior, as in my test the text is correctly wrapped. See attached image.

    I am looking forward to your reply.

    Regards,
    Stefan
    Telerik

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hardy
    Hardy avatar
    9 posts
    Member since:
    Oct 2012

    Posted 12 Jul 2015 in reply to Stefan Link to this post

    Hello Stefan,

     I fixed the problem. The text to be display was read from a database and new lines are defined by "LineFeet" ASCII(10).

    So I'm using the Lines Property to fill the textbox, splitting the text by Chr(10).

    Now it's working ...

    Regards

    Hardy

  5. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 15 Jul 2015 Link to this post

    Hello Hardy,

    I am glad that you have found a solution for your case. Do not hesitate to contact us if you have other questions.

    Regards,
    Dimitar
    Telerik

Back to Top