How can I change the border thickness of a Groupbox on a windows form in C#?

ⅰ亾dé卋堺 提交于 2019-12-01 18:31:49

You'll need to make a custom GroupBox control. See The Grouper - A Custom Groupbox Control

GroupBox is a custom drawn .Net control. You will need to hook into the Paint event, or derive from the GroupBox and override the OnPaint method, determine where the existing lines are being drawn and then draw overtop of them with wider lines to achieve the thicker border. Or you can create a custom control and paint everything yourself.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!