How to specify a component icon for .Net 6 WinFroms desinger
Aerworker
0
Reputation points
To specify an icon for a component class for .Net 5 and earlier versions it was enough to add a ToolboxBitmapAttribute. But starting form .Net 7 it throws an exception on Linux. So it is impossible to call TypeDescriptor.GetAttributes(type) method without an exception. Now on standard types there is no ToolboxBitmapAttribute (for example BackgroundWorker class). Therefore, there must be another way to set the icon. How to do this now?
Sign in to answer