摘要:
前言:相较于之前文章,用这种方式优点是可以修改在属性控件上显示的效果,然后重新绑定就可以了 1.效果图 2.使用举例 PropertyGridProperty propertyGridProperty = new PropertyGridProperty(); Property p1 = new P 阅读全文
posted @ 2020-03-18 11:23
Bridgebug
阅读(280)
评论(0)
推荐(0)
摘要:
1.效果图 2.对象类 public class People { [Category("自定义")] [TypeConverter(typeof(OptionValuesTypeConvertor))] [OptionCollection(1, 54, 6)] public decimal ID 阅读全文
posted @ 2020-03-18 10:43
Bridgebug
阅读(419)
评论(0)
推荐(0)
摘要:
1.效果图 2.对象和控件 using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace AttributeTest { public partial class UserContro 阅读全文
posted @ 2020-03-18 09:52
Bridgebug
阅读(319)
评论(0)
推荐(0)
摘要:
void PrintPanel() { int paperWidth = 178; int paperHeight = 52; var printDocument = new System.Drawing.Printing.PrintDocument(); //指定打印机 //printDocume 阅读全文
posted @ 2020-03-18 09:27
Bridgebug
阅读(332)
评论(0)
推荐(0)