color value

  • Thread starter Thread starter Georg
  • Start date Start date
G

Georg

hi

how can i store the value of a color in a constante without using the
settings of the program of visual basic 2005. I want to save the changing of
the color of the winform
i've tried , but never get to the values of alfa,red,green and blue
separatly . Is this possible and i, what kind of type of variable i can
store the chosen color?

regards, Georg
 
Georg explained :
hi

how can i store the value of a color in a constante without using the
settings of the program of visual basic 2005. I want to save the changing of
the color of the winform
i've tried , but never get to the values of alfa,red,green and blue separatly
. Is this possible and i, what kind of type of variable i can store the
chosen color?

regards, Georg

If you have a Color value, then you can use it's ToArgb() method to
convert that to an int. The (static) method Color.FromArgb(int) does
the opposite.

Hans Kesting
 
Back
Top