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 07:23 PM UTC

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 06:03 AM UTC

Perfect, thanks very much. Ben.

Loader.
Up arrow icon