dynamic_sysop
Well-known member
convert system.color to integer ?
hi does anyone know if its possible to convert a colour to integer? i can put some code together and run my app , but when i click a button to test it, it errors.
i have managed to get it to show a value ( rgb i think ) like this :
but i want to be able to get the int value of the actuall colour not the rgb:-\
hi does anyone know if its possible to convert a colour to integer? i can put some code together and run my app , but when i click a button to test it, it errors.
i have managed to get it to show a value ( rgb i think ) like this :
Code:
int c=Convert.ToInt32(Color.AliceBlue.ToArgb());
MessageBox.Show(c.ToString());