如何更改自定义控件的图标 [ToolBar,Visible=true,Icon="..."]public class MyControl : Control{}好像是这样的,我也没有用过 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sorry,it's like this.namespace NamespaceA{ [ToolboxBitmap(typeof(ControlA), "MyBitmap.bmp")] public class ControlA : System.Windows.Forms.UserControl { ... } ...} 再详细的使用方法你自己查一下msdn吧,Index is ToolboxBitmapAttribute class namespace NamespaceA{ [ToolboxBitmap("MyBitmap.bmp")] public class ControlA : System.Windows.Forms.UserControl { ... } ...} 我试了一下,是可以的,但是这个东西在运行时也要去找这个图片文件,不能与DLL梆在一起,怎么做才能像VC写的控件那样,把图片一起写在控件里去呢?谢谢,可以再给分的 怎样将度数转换成经纬度? DataGirdView的数据绑定到数组 哪里有.net2005的汉化包啊 如何获取模式窗口的引用?望高手指教~ 如何让c# MDI 多个子窗体同时运行? Exception has been thrown by the target of an invocation 在堆上运行跟在栈上运行有什么区别? 请问可以用C#编写移动代理软件吗? 我的.net是不是太老了? 有关PropertyGrid的问题!大家帮帮忙!saucer请进.在线等 如何判断DataSet中某行记录已经被删除? 我想在.net下使用微软提供的条码控件,请问如何将条码打印出来
{
[ToolboxBitmap(typeof(ControlA), "MyBitmap.bmp")]
public class ControlA : System.Windows.Forms.UserControl
{
...
}
...
}
Index is ToolboxBitmapAttribute class
{
[ToolboxBitmap("MyBitmap.bmp")]
public class ControlA : System.Windows.Forms.UserControl
{
...
}
...
}
谢谢,可以再给分的