Font

pnklphnts
03-01-2003, 02:36 PM
a very dumb question im sure: how do you change the font color?

pnklphnts
03-01-2003, 02:40 PM
like i want to change:
txtMain.Text = txtMain.Text & vbCrLf & "Other Person:" & strData
i want to only change the "other person" to blue

JDT
03-01-2003, 02:55 PM
You will need to use a RichTextBox instead of the common control text box. You can add it through components. Right click the Tool Box and select Components then scroll the list for microsoft rich Text Control. Check it and select OK. It will then show up in the tool box.

Once you add it to your form, look into all the .Sel properties. Like .SelColor, .SelStart, .SelLength.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum