|
-
Mar 30th, 2003, 09:35 PM
#1
Thread Starter
PowerPoster
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.

-
Mar 30th, 2003, 09:49 PM
#2
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|