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

03-01-2003, 03: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

03-01-2003, 03: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