Hi,

I am trying to determine the value of a colour (any colour), so that I can tell how dark/light this colour is. Unfortunately the long value in vb ie. 16777215 for White does not tell you accurately enough if a colour is dark or light.

I want to be able to change the colour of text to white if the back colour has been selected to dark.

I have searched the web for a couple of hours now and cannot find anything. Your help would be very welcome.

Thanks

TC