上面的属性都是为了在VS的工具箱或在属性管理器里,让自定义控件看起起来与官方控件一样。

使用控件项目:
使用项目很简单,就是完成布局,设置一下属性就可以了。
DBComBox的控件设置

查询条件设置(这里没有处理条件间的组合)

DBDataGridView的属性设置,DataGridView的列是设置在控件本身的更中的,这里就不切图了。

这个组合查询条件

最后运行结果:

上面的属性都是为了在VS的工具箱或在属性管理器里,让自定义控件看起起来与官方控件一样。
使用控件项目:
使用项目很简单,就是完成布局,设置一下属性就可以了。
DBComBox的控件设置
查询条件设置(这里没有处理条件间的组合)
DBDataGridView的属性设置,DataGridView的列是设置在控件本身的更中的,这里就不切图了。
这个组合查询条件
最后运行结果: