Link to home
Start Free TrialLog in
Avatar of isnoend2001
isnoend2001Flag for United States of America

asked on

rtf alignment problem

hi Experts
I am trying to add text to an existing rtf file using richtextbox in vb6 The rtf i am trying to add text to has a large font
label center aligned. I want the text following this label to be left aligned. Seems i only have a problem when the enter key is
not pressed after entering the large label.
Here is what i have tried:
myrtf.selstart = len(myrtf.text) +1

myrtf.seltext = vbcrlf & "some text" <-This would inherit the center alignment

myrtf. SelAlignment = rtfLeft <-this moves the large label and added text to the left. This also makes the new text the same size and color of the large centered label

How can i add left aligned text under this centered large font label ? and not inherit it's  font and color?
ASKER CERTIFIED SOLUTION
Avatar of Shauli
Shauli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of isnoend2001

ASKER

Thanks Shauli
That works