1、先画出弹出对话框的windows窗体
代码如下:
1
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Data;
5
using System.Drawing;
6
using System.Text;
7
using System.Windows.Forms;
8
9
namespace CustomControlSample
10
}
2
3
4
5
6
7
8
9
10
2、再编写属性值编辑器类
1
#endregion
3、再添加一个属性,并用EditorAttribute 指定相应的编辑器类
1
#endregion
The end.