|
-
Oct 20th, 2001, 02:18 PM
#1
Thread Starter
New Member
How Can I Change The Forecolor Of Richtextbox?
Hello,
how can i change the font colors of the richtextbox control. it has selcolor but it doesnt have foreclor. is there a way to change the color of the all text in the richtextbox. Also when i try to use CommonDiloag.ShowFont it says no fonts installed how can i fix that. Thank you very much
-
Oct 20th, 2001, 02:35 PM
#2
PowerPoster
Use .SelColor. If there is a selection, it will colour that, otherwise it will colour the whole lot
As for the fonts, you have to do this
VB Code:
CommonDialog1.Flags = cdlCFBoth
CommonDialog1.ShowFont
Flags can be as shown, or cdlCFPrinterFonts or cdlCFScreenFonts
-
Oct 20th, 2001, 02:53 PM
#3
PowerPoster
Try this to change the font color:
VB Code:
Dim oldsel As Integer
oldsel = RichTextBox1.SelStart
RichTextBox1.SelStart = 0
RichTextBox1.SelLength = Len(RichTextBox1.Text)
RichTextBox1.SelColor = vbBlue
RichTextBox1.SelStart = oldstart
-
Oct 20th, 2001, 07:56 PM
#4
Frenzied Member
Check out my new web site!!
Not bad for a start but edit the page and take out the server side script that causes the geocities popup. It is one pain in the a$$
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Oct 20th, 2001, 08:10 PM
#5
PowerPoster
Originally posted by Mega_Man
Not bad for a start but edit the page and take out the server side script that causes the geocities popup. It is one pain in the a$$
Mega.
I can't take out the script because it's "server side". I can buy my own domain name if I have at least one commercial product
BTW, Thanks for your comments
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
|