刚学习VB,请教大家
求好心人帮忙Dim startx, starty As Single
Dim drawing As Boolean
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button <> 1 Then Exit Sub
Picture1.AutoRedraw = False
startx = X
starty = Y
drawing = Not drawing
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If drawing Then
Picture1.Cls
Picture1.Line (startx, starty)-(X, Y)
Picture1.MousePointer = 2
End If
End Sub
怎么用动态数组连续的画线?