2, 为继承的控件添加ToolboxBitmapAttribute标签改变默认Icon.
01 [ToolboxBitmap(typeof(MonthCalendar))]
02 [DefaultProperty("Value")]
03 [ToolStripItemDesignerAvailability(
04 ToolStripItemDesignerAvailability.ContextMenuStrip |
05 ToolStripItemDesignerAvailability.MenuStrip |
06 ToolStripItemDesignerAvailability.StatusStrip |
07 ToolStripItemDesignerAvailability.ToolStrip)]
08 public class ToolStripMonthCalendar : ToolStripControlHost
09 {
10 //TODO: ......
11 }
The End