A Line feed is VbLf or Chr(10), a carriage return is VbCr or Chr(13), a form feed is VbFf or Chr(12), a tab is VbTab or Chr(5), and a carriage return/line feed sequence is VbCrLf or Chr(13) & Chr(10).
Jamal On 5/7/2010 4:55 AM, Darko Pogačić wrote:
You can use vbCrLf constant, but I am not sure which ascii value represents line by vbCrLf constant, but I am using chr() function, and representing ascii value 13, its ascii symbol for new line recognized by microsoft Word. Also ascii 10 gives a new lin, but I am not sure wich ascii symbol is for new line given by vbCrLf constant. * From: * programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] *On Behalf Of *Bryan Schulz *Sent:* Friday, May 07, 2010 3:32 AM *To:* programmingblind@xxxxxxxxxxxxx *Subject:* Re: Line Formatting hi, are people using this now instead of vbcrlf? Bryan Schulz ----- Original Message ----- * From: * Celia Rodriguez <mailto:celia-rodriguez@xxxxxxxxxxxxx> * To: * programmingblind@xxxxxxxxxxxxx <mailto:programmingblind@xxxxxxxxxxxxx> * Sent: * Wednesday, May 05, 2010 10:53 PM * Subject: * RE: Line Formatting Hi, I think this might help. TextBox.Text += your string + "\r\n" ; The "\r\n" will give you a new line. Hope it helps. Celia * From: * programmingblind-bounce@xxxxxxxxxxxxx <mailto:programmingblind-bounce@xxxxxxxxxxxxx> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] *On Behalf Of *Darko Pogacic *Sent:* Tuesday, May 04, 2010 11:41 AM *To:* programmingblind@xxxxxxxxxxxxx <mailto:programmingblind@xxxxxxxxxxxxx> *Subject:* Line Formatting Hi there! I am interesting how to make Visual Basic code to make a new line after a number of characters (EG:5). I have a RichTextBox control, and text inside. I want to make a Visual Basic 6 code, wich o n each 30 characters, puts the rest of text into a new line.
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind