VB Word Processor Problem!! HELP!

if i put content like this below into the richtextbox
 
content
 
more
 
and more
 
and put a bullet on the line "more" by doing this

richtextbox.selbullet = true

and copy and paste all three lines, throughout the document a weird character that looks like an unbolded bullet appears after the line "more". Any ideas how this could be fixed?

Thanks for any help
jmingoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BurbbleCommented:
Ok, I've been looking into this for a while now, and I still don't have a definite solution...Here's what I've got so far:

When you copy and paste the text as you described, it adds

Chr$(183) & Chr$(9)

to the beginning of the line below the bulleted line. This corresponds to RTF:

\'b7\tab

(I think)

So my solution was to do this:

Private Sub RichTextBox1_Change()
    Dim lngSelStart As Long
    lngSelStart = RichTextBox1.SelStart
    'RichTextBox1.Text = Replace(RichTextBox1.Text, Chr$(183) & Chr$(9), "")
    RichTextBox1.TextRTF = Replace(RichTextBox1.TextRTF, "\'b7\tab", "")
    RichTextBox1.SelStart = lngSelStart
End Sub

Neither way works. The second one just makes the problem occur without copying and pasting (although the format of the Replace()'d text is correct, setting the RichTextBox contents to it does not seem to work correctly).

I'm thinking that this is a bug in the RichTextBox which may not be (easily) correctable...

Hmm.. I leave this open to other Experts for any more ideas ? I'm all out
0
jmingoAuthor Commented:
yeah i've been looking into this too... and i can't seem to figure it out...

i print the rtf codes into a textbox and it still displays \'b7\tab's after i replace them. weird!!

Private Sub RichTextBox2_Change()

lngSelStart = RichTextBox2.SelStart    
RichTextBox2.TextRTF = Replace(RichTextBox2.TextRTF, "\'b7\tab", "")
RichTextBox2.SelStart = lngSelStart
Text1.Text = RichTextBox2.TextRTF

End Sub

i think it is a bug. there is a free richtext control on vbaccelator, that doesn't do this... i may have to look into that.


any other thoughts??? thanks for your help.
0
BurbbleCommented:
The only reason to keep the question PAQ'd (refund the points of course) would be to advise others who may come across the same problem that it cannot (apparently) be fixed, and is in fact an inherent problem of the Rich Text Box control.
0
PAQ_ManCommented:
PAQed with points refunded (25)

PAQ_Man
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.