We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Changing Background Colour on GradientPanel at Runtime

I have a GradientPanel with a label control inside it. The background on the label control is set to System.Drawing.Color.Transparent. The gradient panel is configured with a two colour vertical gradient. At design time it looks fine. I have a button that changes the BackColor and ForeColor on the GradientPanel, however, rather than changing the gradient it changes the colour of the label text. Any suggestions please? Thanks, Ben.

2 Replies

AD Administrator Syncfusion Team September 17, 2004 03:23 PM

Hi Ben, I have attached a test sample here that shows how this can be done. Please refer to it and let me know if this meets your requirements. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


AD Administrator Syncfusion Team September 23, 2004 02:03 AM

Perfect, thanks very much. Ben.

Loader.
Live Chat Icon For mobile
Up arrow icon