The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
ADAdministrator Syncfusion Team September 16, 2004 11:43 PM UTC
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.