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

changing color of groupbaritem

Thread ID:





69125 Oct 16,2007 06:31 AM UTC Oct 25,2007 03:19 PM UTC WinForms 1
Tags: Tools
Asked On October 16, 2007 06:31 AM UTC

Is it possible to change the colors of the groupbaritems while using the office2003 visual style?
I'm using the 4.2 release.

haneefm [Syncfusion]
Replied On October 25, 2007 03:19 PM UTC

Hi Dudi,

You would have to derive the GroupBar class and override the DrawGroupBarItem method to customize the background color of the GroupBarItem in a GroupBar. Below are the codes:

public class MyGroupBar : GroupBar
public MyGroupBar(): base()

protected override void DrawGroupBarItem(Graphics gfxTarget, int nindex, Rectangle rcbar)
base.DrawGroupBarItem(gfxTarget, nindex, rcbar);
gfxTarget.FillRectangle(new SolidBrush(Color.Red), rcbar);

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.

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