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

Changing Background Colour on GradientPanel at Runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

19086 Sep 17,2004 05:56 AM Sep 23,2004 02:03 AM Windows Forms 2
loading
Tags: Tools
Administrator [Syncfusion]
Asked On September 17, 2004 05:56 AM

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 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.

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

Perfect, thanks very much. Ben.

CONFIRMATION

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.

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.

;