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.
Unfortunately, activation email could not send to your email. Please try again.

Group Bar Icons

Thread ID:





19056 Sep 16,2004 11:33 AM Sep 16,2004 07:43 PM Windows Forms 1
Tags: Tools
Asked On September 16, 2004 11:33 AM

I am trying to programatically set the icon that a GroupBarItem uses. The image i have is a .png and not a .ico. is there any way to do this programatically?

Administrator [Syncfusion]
Replied On September 16, 2004 07:43 PM

Hi Troy, You could convert an image in .png format to .ico using the code below : Image img = Image.FromFile("myPic.png"); Bitmap bmp = img as Bitmap; this.groupBarItem1.Icon = Icon.FromHandle(bmp.GetHicon()); Let me know if you need further assistance. Thanks for your interest in Syncfusion products. Regards, Guru Patwal Syncfusion,Inc.


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.

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.