2011年3月11日

给大家一个WinForm中画横向分隔线的控件源代码。好多人在用。

摘要: 大家在窗体中使用横向分隔线,好多人都用 GroupBox或者Label来模拟。这样有好处也有坏处。好处是简单,坏处是如果很多条线的话,控制大小很难。usingSystem.ComponentModel;usingSystem.Drawing;usingSystem.Windows.Forms;publicclassHorizontalLine:Control{privateColor_lineColor;[Category("布局"),Description("控件的大小(以像素为单位)。")]publicnewSizeSize{get{returnba 阅读全文

posted @ 2011-03-11 16:14 笑望人生 阅读(3314) 评论(2) 推荐(0) 编辑

导航