Cool. No how can this be done for a container or shape etc. I believe that the new GDI+ class can be used but how?
>Use the following in the form's init event (Watch the resizing)
>
>
>
LOCAL lnRow
>ThisForm.ScaleMode = 3
>ThisForm.DrawWidth = 1
>FOR lnRow = 0 TO ThisForm.width
> ThisForm.ForeColor = RGB(0,0,255-255*lnRow/ThisForm.width)
> ThisForm.Line(lnRow, 0,lnRow,ThisForm.height)
>NEXT lnRow
>
>
>>How i can use these colors for e.g. in a container or image?