请帮助我更改组件图标 [英] please help me to change the component icon
本文介绍了请帮助我更改组件图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个组件,但是我不知道如何更改组件的图标
任何人都可以帮助我吗?
解决方案
如果您是指Visual Studio ToolBox中的图标,请在类定义行上方添加以下内容:
[ToolboxBitmap( @" )]]您将在 MSDN [ ^ ] 您可以使用ToolboxBitmap属性来完成此任务.作为
[System.Drawing.ToolboxBitmap ( @"C:\YourIcon.bmp" )]
参考链接:-如何将ToolboxBitmap添加到C#[ ^ ]
hi,i create a component but i dont know how can i change the icon of my component
anyone can help me?
解决方案
If you mean the icon in the Visual Studio ToolBox, include the following above teh class defintion line:
[ToolboxBitmap(@"c:\MyIcon.bmp")]
You can use ToolboxBitmap attribute to accomplish this task. as
[System.Drawing.ToolboxBitmap ( @"C:\YourIcon.bmp" )]
Reference Link :- How do I add a ToolboxBitmap to a C#[^]
这篇关于请帮助我更改组件图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文