作者maurier235 (Espresso)
看板Visual_Basic
标题[VB6 ] 关於VB中ZOrder的用法
时间Tue May 29 19:54:28 2007
个位高手好,我想问一个程式问题
这一段程式码是一段用来在画图板上来画格线的程式
Private Sub Form_Load()
Dim X%, W%
With Picture1
.AutoRedraw = True
.ScaleMode = 3
.ZOrder
End With
With Picture2
.ScaleMode = 3
.AutoRedraw = True
.Move Picture1.Left, Picture1.Top, Picture1.Width, Picture1.Height
W = 10
For X = W To .ScaleWidth Step W
Picture2.Line (X, 0)-(X, .ScaleHeight)
Next
For X = W To .ScaleHeight Step W
Picture2.Line (0, X)-(.ScaleWidth, X)
Next
.Picture = .Image
End With
End Sub
我想在这段程式里加入"ZOrder"让格线永远在最底层 也就是"1"
这样才不会遮盖掉其他物件
请问各位 这要怎麽放呢??
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.127.59.91