[ToolboxBitmapAttribute(typeof(YourControl), "YourControlIcon.bmp")]
public class YourControl: System.Windows.Forms.UserControl
{
...
}
[assembly: TagPrefix("CustomLabel", "xxx")]
using System.Web.UI;
see tohttp://www.blog.edu.cn/user2/25154/archives/2005/303698.shtml
转载于:https://www.cnblogs.com/deadshot123/archive/2006/11/22/568495.html
本文介绍了如何使用C#为自定义控件设置图标,并展示了如何为自定义控件指定Web UI中的标签前缀。通过具体代码示例,读者可以了解如何在.NET应用程序中实现这些功能。
40

被折叠的 条评论
为什么被折叠?



