可能是记混了。
1、窗体的BorderStyle有0-5
0 - None
1 - Fixed Single
2 - Sizeable
3 - Fixed Double
4 - Fixed ToolWindow
5 - Sizeable ToolWindow
2、以下代码是text1的细边框。
Text1.Appearance =0
Text1.BorderStyle = 1
3、或者用line在窗体画线
Me.AutoRedraw = True
Me.BorderStyle = 0 '设置窗体无边框
Me.ScaleMode = vbPixels '设置窗体的坐标系统为像素
Me.DrawStyle = vbInsideSolid '设置绘制样式为实心
Me.DrawWidth = 1 '设置绘制宽度为1个像素
Me.DrawMode = vbCopyPen '设置绘制模式为复制笔
Line (10, 10)-(10, 200), vbRed '绘制竖线
Line (10, 10)-(300, 10), vbRed '绘制横线
End Sub
[此贴子已经被作者于2023-3-25 10:50编辑过]