Chronovore
May 2nd, 2001, 01:53 PM
How would someone make key words in text appear in a different color like in Visual Studio?
|
Click to See Complete Forum and Search --> : colored text Chronovore May 2nd, 2001, 01:53 PM How would someone make key words in text appear in a different color like in Visual Studio? Iouri May 2nd, 2001, 02:03 PM What text are you talking about. Here the code for RTF control. private Sub Command1_Click() RTB1.Text = "bla-bal word bla-bal" RTB1.SelStart = InStr(RTB1.Text, "word") - 1 RTB1.SelLength = len("word") RTB1.SelColor = vbRed RTB1.SelLength = 0 End Sub Iouri Boutchkine iouri@hotsheet.com codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |