Using par
Hi,
My code works in making a carriage return programmatically using
vbNewLine.
How can I use the "par" command in a richtextbox control?
I've tried:
RichTextBox1.TextRTF="PeeVee" & par & "Jace"
This example results to "PeeVeeJace"
Can u please give me sample codes in using this par commands and some RTF codes
[369 byte] By [
peevee12] at [2007-11-18 2:13:43]

# 2 Re: Using par
The "\par" code you refer to is a format code in an rtf file. Unless you plan to directly edit an rtf file through your code, without using the RichTextBox control, you probably will never use it.
Use the vbNewLine command or vbCrLf to start a new line.
# 4 Re: Using par
For a greater knowledge in RTF coding check the MSDN -> Specification -> Application..
But the rtf capability provided in ms richttextbox control is not comparable with the ms-word. It is limitted only in such a point that when the rtf codes you need to render the document is not functioning:D
Well, when writing an RTF codes in the richtextbox control the text should be enclosed within braces.. I though, all RTF codes are preceeded with the backslash "\".. And the after the codes is the text which is separated by a space..
richtextbox1.TextRTF = "{\par \b Hello world!}"
\par designates a new paragraph.
\b designates a bold text
\b0 reset bold
\ul underline
\pard default paragraph as described in the rtf header?! am i right?:D
\fs font size
\f1 font?! described in the rtf header at font table :D