请教在vb中画线的线型问题(急)

2024-11-27 15:25:58
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Picture1.Cls
Picture1.ScaleMode = 0
Picture1.ScaleMode = 3
Picture1.Scale (-1, 12)-(2, -12)
Picture1.Drawstyle=0 '实线
Picture1.Line (-1, 0)-(2, 0), vbBlue
Picture1.Drawstyle=3 '点画线
Picture1.Line (0, 10)-(0, -10), vbRed
End Sub