Discussion:
Diffrent Margins in richtextbox
(too old to reply)
Asad Kazmi
2010-01-09 02:40:18 UTC
Permalink
hi everyone,

I want to set different margins in richtext box in vb express 2008 , any
help will be appreciated.

what I want to do is like this

need to set left margin of 2.7" and right margin of 2.4" and one blank
lines precede after that.
and left margin 1.0" from the left edge of the page and the right margin is
at 7.4" from the left edge of the page.



asad kazmi
Asad Kazmi
2010-01-11 11:17:36 UTC
Permalink
got a solution but text is not moving forward on line (I am using RTL for
URDU Language


With rtbEditor
.SelectionStart = 1
.SelectionLength = rtbEditor.TextLength
'.SelectionColor = Color.SlateGray
.SelectionIndent = 100
.SelectionAlignment = 0 'Means paragraph aligned along left
margin
.SelectionRightIndent = 100
End With


any help why this is happening ?
Post by Asad Kazmi
hi everyone,
I want to set different margins in richtext box in vb express 2008 , any
help will be appreciated.
what I want to do is like this
need to set left margin of 2.7" and right margin of 2.4" and one blank
lines precede after that.
and left margin 1.0" from the left edge of the page and the right margin is
at 7.4" from the left edge of the page.
asad kazmi
Loading...