Results 1 to 2 of 2

Thread: System.Drawing.Color

  1. #1

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    System.Drawing.Color

    It says system.drawing.color can not accept an integer value?

    I am trying to set the backcolor of a button using the RGB(red,green,blue) function. But it says i can't becasue it's an integer.

    So what's the deal with it?

    Thanks!
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Try something like this:
    System.Drawing.Color myColor = System.Drawing.Color.FromArgb(intRed, intGreen, intBlue);

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