在你的控件项目里加一个和控件名相同的.bmp文件就行了
解决方案 »
- 为什么没有输出全部的值序列?
- C#windows桌面窗体应用程序(winxp)如何转成智能设备应用程序(wince)
- [急][100分在线等]OracleDataAdapter.Update()失败
- ComboBox数据邦定问题,看过很多帖但是没解决
- dictionary保存数据
- XML求助(在线等)
- .NET(C#)开发框架
- C# 一个程序如何操作另一个程序
- ********** how to excute a dos command in c#? **********
- VS.Net不能调试?
- Nevron Chart for .NET这个软件怎么用啊?高分送!
- 如何象ASP中的查询提交那样以button打开另一WEB页?
// Specifies the bitmap associated with the Button type.
[ToolboxBitmap(typeof(Button))]
class MyControl1 : UserControl
{
}
// Specifies a bitmap file.
[ToolboxBitmap(@"C:\Documents and Settings\Joe\MyPics\myImage.bmp")]
class MyControl2 : UserControl
{
}
// Specifies a type that indicates the assembly to search, and the name
// of an image resource to look for.
[ToolboxBitmap(typeof(MyControl), "MyControlBitmap")]
class MyControl : UserControl
{
}