tags:

views:

363

answers:

2

I have the unenviable task of maintaining an ActiveX control that expects OLE_Colors as the back/for colour of the control.

Is there a tool or a .NET code sample that will convert from an RGB colour (or a hex colour) to an OLE_Color?

A: 

Maybe this will help you: http://www.codeitbetter.com/how-to-convert-ole-colors-to-rgb-colors/

^.^!

Neurofluxation
I've found a few tutorials on converting from an OLE_Color to a RGB colour, but I want to do it the other way round - converting an RGB colour to an OLE_Color.
Robert W
A: 

System.Drawing.ColorTranslator.ToOle()

Robert W