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

Icon in Stacked GroupBar header

Thread ID:





51184 Oct 30,2006 11:08 PM UTC Nov 1,2006 10:43 PM UTC WinForms 3
Tags: Tools
Andy Johns
Asked On October 30, 2006 11:08 PM UTC

I've got a stacked GroupBar control with icons in the GroupBarItems. I would like the header to show the corresponding icon when the Item is selected, not just the text. How can I achieve this?

Purusothaman R [Syncfusion]
Replied On October 31, 2006 01:30 AM UTC

Hi Andy,

Currently it;s not possible to have an Icon in the GroupBar Header. Because by the design of GroupBar, the Header is not a Control. Its just a painted area.

I will forward this to the development team to implement your request as an feature.

So as an work around, place a PictureBox over the desired area of the GroupBar header. Set the SizeMode to "StretchImage" and bring it to the Top over the Groupbar. Now you can assign the Icon of the selected GroupBarItem to the PictureBox in the "GroupBarItemSelected" event.

Thanks for using Syncfusion Products.


Andy Johns
Replied On November 1, 2006 09:59 PM UTC

Adding it as a built-in feature would be great.

I've resolved the issue for now by subclassing the GroupBar control, and overriding the DrawStackedGroupBar method to add in a bit of code to draw the selected GroupBarItem's icon before the header text.


Mano J [Syncfusion]
Replied On November 1, 2006 10:43 PM UTC

Hi Andy,

Thanks for the update. We can make it as a feature in the future releases.



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

or the page will be automatically redirected to 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