CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    14

    How can textbox handles html file new line character?

    I have try to place the html source in the textbox but the control cannot recongize the new line character. How can I handle?


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How can textbox handles html file new line character?

    Have you set the textbox '.multiline' property to True ?


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  3. #3
    Join Date
    Feb 2000
    Posts
    137

    Re: How can textbox handles html file new line character?

    If you are talking about getting the textbox to recognize <BR> as an end of line - parce the string before placing it into the textbox by using the following code:


    txtString = Replace(txtString, "<BR>", "<BR>" & Chr$(13))




    (You may also want to repeat this line using lowercase br - just in case)

    Also, like the previous guy said - make sure that you have the textbox set to multiline.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured