converting RTF backcolor to Web back color

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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....
 
Back
Top