绘制水平分割中的WinForms水平、WinForms

2023-09-02 01:52:35 作者:一切都会过去的

在标准的窗户安装有在底部的控制按钮和形式的主要部分之间的分隔。有谁知道如何做到这一点的的WinForms / .NET做什么?我试着摆弄周围与面板上的控制等方面的边框设置,但一直没能得到相同的结果...

解决方案

我用间谍++算出这个前一阵子,发现这只是一个标准的Win32静态控制 - 中的WinForms标签的等价物。为获得同样的效果步骤:

添加一个Label控件到窗体中。 设置标签文本为空。 设置边框样式,以Fixed3D。 设置自动调整大小为false。 设置高度为2(最容易键入2到下标签属性的大小/高度字段来实现)。

In the standard windows installer there is a divider between the control buttons on the bottom and the main part of the form. Does anyone know how this would be done in winforms/.net? I've tried fiddling around with the border settings on Panel controls etc, but haven't been able to get the same result...

mysql 水平分割

解决方案

I used Spy++ to figure this out a while ago and discovered that it's just a standard Win32 Static control -- the equivalent of the WinForms Label. Steps for getting the same effect:

Add a Label control to your form. Set Label Text to empty. Set BorderStyle to Fixed3D. Set AutoSize to false. Set Height to 2 (most easily accomplished by typing 2 into the Size/Height field under Label Properties).

 
精彩推荐
图片推荐