tags:

views:

24

answers:

2

colordialog1.color will yield "Color [A=255, R=95, G=33, B=222]", but i would like to return an integer like 2349821 instead. how is this possible?

+2  A: 

Use

colorDialog1.Color.ToArgb()
BlueMonkMN
+1  A: 

Adding on to BlueMonkMN's answer

If you need the Alpha byte:

colorDialog1.Color.ToArgb()

If you don't want the Alpha byte:

colorDialog1.Color.ToArgb() And &H00ffffff
MiffTheFox