andyakira
asked on
Blocking Rich Text Format?
is there a way to block RTF? like these {\rtf1\ansi\ansicpg1252\de ffo\deflan g\1033\def langfe1033 {\fonttbl{ \fo\fswiss \fprq2\fch arseto Verdana;}}{\colortbl;\red2 55\greeno\ blueo;}\vi ewkind4\uc 1\pard\now idctlpar\c f1\fo\fs44 BLAH\par}, . because it messed up my colors, and since My RTB is to get text from a chatroom, people are spamming this like its a exploit.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For I = LBound(saElements) To UBound(saElements) Step 2
With Form1.RTB
.SelStart = 99999999
.SelLength = 0
.SelColor = saElements(I)
.SelText = saElements(I + 1) & Left$(vbCrLf, -2 * CLng((I + 1) = UBound(saElements)))
.SelStart = 99999999
End With
Next I