converting RTF backcolor to Web back color

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
 
G

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
 
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top