Thanks for answering.. I was getting lonely :)
With regards to point 1, I have since found out that VB5 RTF has a bug that if the right margin is 0 then it never wraps. I've just upped from VB5 to VB6 and MS fixed it.. Doh ! Thats why I was confused.
My last question that you didnt understand...
Try remembering where the caret is before you use the replace function. Then add the length of the replaced word to you original caret position.
Something like (and I've not checked this)
ToFind = "bob"
If InStr(1, RichTextBox1.Text, LCase(ToFind)) > 0 Then...
Ok.. I'm getting confused by what is probably simple stuff but I need to ask someone before I go mad. They are all RTF related questions !!
1) How do you enable an RTF to be multiline but disable the wordwrap. ie Your VB editor does exactly this.
2) How do you make the scrollbars appear even...
Probably a simple answer to this but I'm trying to change the highlight mask of an RTF. It defaults to invert but I'd like to be able to tailor it depanding to the users color selections. I'd settle for simple grayscale like the VB editor uses if its not easy. The invert mask is soooo ugly when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.