well
i'm trying to know the palete code of a color depending on its system code in run time
the thing that i really wan to do is to make a part of my program the same color of the desktop and the other part a little lighter

so what i have done is that i programed a function that finds out the red, green and blue parameters of a colour and then adds a certain amoust to each of them ( to make the color lighter ) and i tested it on palete colors and it worked well, but when i used it on system colors ( you know when selecting a color for an object in VB it can be either palete color or system color ) it didn't work so if there is way to convert system code of a color to palete code in run time everything will work

or if there is a way to directly return a code of a color that is slightly lighter than a given color it wil be better

i'll be thankthfull for any reply