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

XPMenus BackgroundColor

Thread ID:





15518 Jun 21,2004 02:14 PM UTC Jun 21,2004 02:45 PM UTC WinForms 1
Tags: Tools
Jamie Hill
Asked On June 21, 2004 02:14 PM UTC

I have just upgraded an application to version of the Syncfusion controls. I have an issue where a line of code no longer works for me, and I cannot find the correct new code. Your knowledge base item below shows that this should still be correct, but I am getting an error that "MenuColors is not a member of XPMenus". Can you tell me the code I should be using to set the background color of my menu? ''Set the color of the Menu bar to the color of the form Syncfusion.Windows.Forms.Tools.XPMenus.MenuColors.MainMenuBackColor = Me.BackColor Thanks, JH Q10144 - Info: How do I change the default colors of the main-menu, dropdown menus, toolbars, etc.? There is a Syncfusion.Windows.Forms.Tools.XPMenus.MenuColors class that includes some static properties that you can change to get a custom BG color for the different portions of the menus and toolbars. For example: MainMenuBackColor, CommandBarBackColor and StatusBarBackColor.

Administrator [Syncfusion]
Replied On June 21, 2004 02:45 PM UTC

Hi JH We made some changes to the API and we are sorry for the inconvenience caused. Kindly take a look at the XPMenus sample(Tools\samples\Menus Package\XPMenusMDI). Refer to the CustomColorItem_Click() handler. Here is a snippet from the code for the handler: MenuColors.MenuBGColor = Color.FromArgb(251, 249, 243) MenuColors.DropDownBorderColor = Color.FromArgb(158, 133, 56) MenuColors.CheckedSelColor = Color.FromArgb(247, 243, 229) MenuColors.MenuLeftStripColor = Color.FromArgb(234, 222, 187) MenuColors.PressedSelColor = Color.FromArgb(220, 204, 158) MenuColors.SelBorderColor = Color.FromArgb(194, 163, 69) MenuColors.SelColor = Color.FromArgb(253, 252, 248) MenuColors.CommandBarBackColor = Color.FromArgb(234, 222, 187) Regards Arun


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