When I append data to my richtextbox I use selectioncolor to set the color of that block of text. The problem with this, is if the user is selecting as well.
If my sub is called, the following executes:
with myrichtextbox
.selectioncolor = mycolor
.appendtext(myt ext)
end with
So you see the problem is if the sub is called while the user is also selecting text, mycolor is applied to the user's selected text instead of mytext. Any suggestions?
If my sub is called, the following executes:
with myrichtextbox
.selectioncolor = mycolor
.appendtext(myt ext)
end with
So you see the problem is if the sub is called while the user is also selecting text, mycolor is applied to the user's selected text instead of mytext. Any suggestions?
Comment