Results 1 to 2 of 2

Thread: Rich Text Box?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    2

    Question Rich Text Box?

    Hi.

    I have a problem in C# with using the control RichTextBox. So, I have to make a web browser and i reached the stage in which i have to display the page (already done the parsing). Now, my question is how do I set the background color of the RCB? I mean, I have to set according to the attribute BGCOLOR = #something (from the HTML code).

    It should be of the type Systems.Drawings.Color, but i convert String to this.

    Help...

  2. #2
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Re: Rich Text Box?

    make your own dtb of colors?

    like black = 000000
    and white = FFFFFF

    also for #123212 lookup fromargb(255, red, green, blue)
    (255 = full opac)

    notice you could parse 3 hex numbers to 3 integer ones...


    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width