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

Controling the Highlight color of BarItems

Thread ID:





96809 Oct 7,2010 12:16 PM UTC Oct 13,2010 07:29 PM UTC WinForms 1
Tags: Tools
Asked On October 7, 2010 12:16 PM UTC

I want to chaneg the color of the highlight box of BarItem instances in XPMenu.Bar bars (statusbar, menubar, toolbar) when the mouse is hovering over them.

(when changing BarItemSelectFlashColor, only a section of the highlight rectangle changed its color).
Is there any way to chaneg the appearance of the highlighting without overriding OnPaint?

Vallarasu S [Syncfusion]
Replied On October 13, 2010 07:29 PM UTC

Hi Shay,

Thanks for your interest in Syncfusion products.

You can change the MenuColors with the Static properties in the MenuColors class as follows,

MenuColors.SelColor = Color.FromArgb(179, 71, 59);
MenuColors.SelTextColor = Color.White;
MenuColors.SelBorderColor = Color.FromArgb(183, 214, 242);
MenuColors.MenuBGColor = Color.White;
MenuColors.MenuLeftStripColor = Color.White;
MenuColors.DropDownBorderColor = Color.FromArgb(166, 205, 226);
MenuColors.PressedSelColor = Color.FromArgb(166, 201, 232);
MenuColors.CheckedSelColor = Color.FromArgb(215, 236, 255);
MenuColors.FloatingCommandBarCaptionColor = Color.FromArgb(183, 214, 242);

Refer to the documentation at the following link




We have a sample shipped with the Essential Studio at the following location

Essential Studio Samples >> Tools Samples >> Menus Package >> Custom Colors.

{Samples Installation Path}Syncfusion\EssentialStudio\Version Number\Windows\Tools.Windows\Samples\2.0\Menus Package\CustomColors

Refer the documentation and the sample and let us know if you need further assistance.

Vallarasu S.


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