Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to set the indent for the lines of text in a rich text box at least 1 indent point for each line on the left and the right of the rich textbox.

i would also like to add a header and a footer to the rich text box area,

What I have tried.

i have tried to change this in the rich text box properties,
I have tried to use the code for indenting but none of this has worked.

I have searched for the header portion but i have not found anything remotley helpful on the net

if someone can please point me in the right direction please

this is a windows form application in visual basic.net

Thank you.

What I have tried:

this
(did not work)
{\pard \fs60 \keepn \qc .\par}
{\pard \keep
\par}

I have also tried this 

(THIS DID NOT WORK EITHER)

        RichTextBox2.Left.Margin.Indent = 10
        RichTextBox2.Right.Margin.Indent = 10
Posted
Updated 8-Jul-23 3:48am

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900