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.

Custom ButtonRenderer to ButtonAdv

Thread ID:





58458 Mar 23,2007 03:28 PM Mar 27,2007 01:07 PM Windows Forms 1
Tags: Tools
Administrator [Syncfusion]
Asked On March 23, 2007 03:28 PM

Is there any way I can have my own buttonrenderer
for buttonadv. Right now renderer changes as per the appearance enum. In general what I want to do is..I want to have my own color for mouse hover rather than having a predefined color.

Poly J [Syncfusion]
Replied On March 27, 2007 01:07 PM


Thanks for your interest in Syncfusion Products.
If you are using ButtonAdv control in .net framework 2.0 you can set the MouseOver BackColor using the following code snippet.
this.buttonAdv1.FlatAppearance.MouseOverBackColor = Color.AliceBlue;
this.buttonAdv1.FlatAppearance.MouseDownBackColor = Color.HotPink;

Before that you should change the Button FlatStyle property to Flat and disable visual style.
Please refer to the attached sample and let me know if this is helpful for you.

Best Regards,


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.