如何为控件添加自定义属性
为PictureBox控件添加一个ItemID属性 我的代码:
public partial class PictureBox : Control { private string ItemID; [Category("Item ID"), DescriptionAttribute("物品编号"),DefaultValue(null),Browsable(true)] public string itemID { get { return this.ItemID; } set { this.ItemID = value; } } }
为什么DeBug编译不过去?