在这里用到 属性(Attribute), 属性(Attribute)与属性(Property)不同, 前者是用来描述编程元素的,后都是用来描述对象的. 简单地说, 错了不要骂我!!!将一篇代码稍稍改动了一点: 1using System.ComponentModel; 2using System.Windows.Forms; 3using System.Drawing; 4 5namespace CustomControlSample 6} The end. 相关文章: 2021-05-17 2022-12-23 2022-12-23 2022-12-23 2021-12-29 2021-05-19 2021-09-10 2021-12-06