RE: Line Formatting

  • From: Darko Pogačić <darko.pogacic@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 6 May 2010 17:26:53 +0200

OK, it can help, but I want to add a new line after some numbers of
character.

New line recognized from Microsoft Word has 13 ascii value, and Visual Basic
sintax is chr(13).

I want to make a program which after each 30 character in a long text,
inserts a new line, and puts the rest of a long text in a new line.

Program also needs on each 26 line to insert chr(12), its ascii value for
the page break recognized for Microsoft Word.

 

 

  _____  

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Celia Rodriguez
Sent: Thursday, May 06, 2010 5:54 AM
To: programmingblind@xxxxxxxxxxxxx
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] On Behalf Of Darko Pogacic
Sent: Tuesday, May 04, 2010 11:41 AM
To: 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.

 

Other related posts: