rtf alignment problem
Posted on 2005-05-13
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?