Click to See Complete Forum and Search --> : How can textbox handles html file new line character?


Kung Wu
February 2nd, 2000, 01:32 AM
I have try to place the html source in the textbox but the control cannot recongize the new line character. How can I handle?

Chris Eastwood
February 2nd, 2000, 03:01 AM
Have you set the textbox '.multiline' property to True ?


Chris Eastwood

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

Spectre
February 2nd, 2000, 09:02 AM
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.