星期二, 8月 18, 2009

C# 表單配置分隔線(Separator Line)

剛好需要用到,google一下第一頁就有解答了,真扯XD

[原文內容如下]

Separator Line on Form [C#]

To simulate the line in Windows Forms use a Label control.

Set its Height to 2 pixels and BorderStyle to Fixed3D.

Thats all, see the example.

[C#]
// separator bevel line

label1.AutoSize = false;

label1.Height = 2;

label1.BorderStyle = BorderStyle.Fixed3D;
Reference:Separator Line on Form [C#]

沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails