Home All Groups Group Topic Archive Search About

converting RTF backcolor to Web back color

Author
1 Jul 2006 4:28 AM
iwdu15
hi, im doing this:

Dim str as string = "#" & Me.rtbCreate.ForeColor.R &
Me.rtbCreate.ForeColor.G & Me.rtbCreate.ForeColor.B

rtbCreate being a rich text box control, yet the colors dont match. the
color shown in the WebBrowser control is different that that of the
RichTextBox....ive also tried using just

Me.rtbCreate.GetHashCode to try, and that still wont give me the right
color. does anyone know how i can get the colors to match? thanks

--
-iwdu15

Author
1 Jul 2006 5:58 AM
GhostInAK
Hello iwdu15,

Your data types are all hosed, you hoser, eh.

You really should learn your tools.. read a book.. read the documentation.
In the mean time hit F1 and look up the Colortranslator class.

-Boo

Show quoteHide quote
> hi, im doing this:
>
> Dim str as string = "#" & Me.rtbCreate.ForeColor.R &
> Me.rtbCreate.ForeColor.G & Me.rtbCreate.ForeColor.B
>
> rtbCreate being a rich text box control, yet the colors dont match.
> the color shown in the WebBrowser control is different that that of
> the RichTextBox....ive also tried using just
>
> Me.rtbCreate.GetHashCode to try, and that still wont give me the right
> color. does anyone know how i can get the colors to match? thanks
>
Author
1 Jul 2006 6:44 AM
iwdu15
lol yea i guess so. this is my first time trying anything like this, so ive
made a few errors. what about ranslating RTF font size to web font size?
there wasnt a font translator....
--
-iwdu15