Painting a gradient background on a sub-control

P

Phil Jones

I have a control that I'm drawing a colored Gradient backgound on (using the
"OnPaintBackground" override method). What I'm wondering is:

How can I get a sub-control within the painted control (an Label for
instance) to reflect the gradiant colors at the point it is situated within
the control. Is there some way to tell it paint a background from a part of
the parent background?

Thanks everyone!

===
Phil
(Auckland | Aotearoa)
 
P

Phil Jones

OK...setting the backColor of a label to Transparent does the trick.

However, it's still be useful to know of any strategies for painting the BG
and details of other controls onto a control. That way I could have control
overlap each other, which is a real pain not being able to do.

I think I'll start looking at the paint methods to see if I can figure this
out.

Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top