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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing Background Colour on GradientPanel at Runtime

Thread ID:





19086 Sep 17,2004 09:56 AM UTC Sep 23,2004 06:03 AM UTC WinForms 2
Tags: Tools
Administrator [Syncfusion]
Asked On September 17, 2004 09:56 AM UTC

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.

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On September 23, 2004 06:03 AM UTC

Perfect, thanks very much. Ben.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon