Re: Line Formatting

  • From: "RicksPlace" <ofbgmail@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 7 May 2010 09:30:58 -0400

OK, Chr(133) is the next line but that just moves the cursor down a line but 
does not return it to the beginning of the line. Chr(10) I think is the code 
that does that. So, if playing with the ascii codes you use something like:
Chr(13) Chr(10) so you go to the next line then back left to the beginning of 
the new line.
Rick USA
  ----- Original Message ----- 
  From: Darko Pogačić 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Thursday, May 06, 2010 11:26 AM
  Subject: RE: Line Formatting


  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: