> Too many functions and properties missing to do it that way
> (like scalemode, line etc).
> GDI+? I would think so.
> 1. Create a graphic object
> 2. Create a rectangle object add the LinearGradientBrush to it.
>
> And paste it on your form, container or shape.
Unfortunatly GDI+ (or even GDI) does not work well here. You can draw to the form easy enough and hook into the Paint event. The problem is you need to paint between layers (on top of the container and under the controls) you cant do that with the way VFP handles form rendering.
Probably the best you could do is draw to the location and size of the container or shape and mask off any controls you find on top of the container or shape. Such that you are cutting out a template and laying it over the form. This could get tricky with XP themes...with their rounded buttons...
Bo Durban