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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom ButtonRenderer to ButtonAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

58458 Mar 23,2007 07:28 PM UTC Mar 27,2007 05:07 PM UTC WinForms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 23, 2007 07:28 PM UTC

Hi,
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 05:07 PM UTC

Hi,

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

Best Regards,
Poly

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.

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

;