|
-
Jun 3rd, 2002, 06:37 AM
#1
Thread Starter
PowerPoster
RTF box text color
In starting to play with RTF boxes, I created a form with an rtf box and 2 buttons to show text w/ attributes. It works fine on my Win98 machine but the color does not work on my XP machine. Here is the code:
Private Sub Command1_Click()
rtfBox1.Text = "This is the text for the RTF box"
rtfBox1.Font = "Courier New"
End Sub
Private Sub Command2_Click()
rtfBox1.SelColor = RGB(255, 0, 0) ' sets text to red
rtfBox1.Text = "more text" ' overwrites prev text, as it should
End Sub
I can't see any difference in the RTF control and I'm running VB6.0 on both machines.
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|