Sorry to repost this again... I really ran out of idea and resources to
figure out how to make this work... Hope someone will help. Thanks :)
I've tried the transparent for backcolor, but it doesn't work.
The below is the coding to draw the gradient. Could that be other way of
writing?
System.Drawing. Drawing2D.Linea rGradientBrush brush = new
System.Drawing. Drawing2D.Linea rGradientBrush( new
System.Drawing. RectangleF(0,0, this.Width, this.Height), Color.Blue,
Color.SkyBlue, System.Drawing. Drawing2D.Linea rGradientMode.V ertical);
graphics g = this.CreateGrap hics();
g.FillRectangle (brush, new RectangleF(0,0, this.Width, this.Height));
g.Dispose();
Thank you.
Regards,
Daniel
"Morten Wennevik" <Mo************ @hotmail.com> wrote in message
news:opsb47fet8 klbvpo@morten_x .edunord...
Hi Daniel,
Set the label's BackGroundColor = Color.Transpare nt
If you use ClipRectangle for your gradient calculation the gradient for the label will be different than the background.
--
Happy coding!
Morten Wennevik [C# MVP]