color value

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
 
H

Hans Kesting

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
 

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