查看完整版本: 画折线出问题了?高手指点一下!

12qw12qw 2008-10-7 11:19

画折线出问题了?高手指点一下!

[b]Dim x1, y1, x2, y2, left_c As Integer[/b]

[b]Private Sub Form_Load()
left_c = 0
End Sub[/b]
[b]
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
left_c = 0
Else
If left_c = 0 Then
x1 = X
y1 = Y
left_c = 1
Else
x2 = X
y2 = Y
Picture1.Line (x1, y1)-(x2, y2)
End If
End If
End Sub[/b]

12qw12qw 2008-10-7 11:20

运行可以但是没显示

在form上建立一个picture控件,在这个控件里面花折线,,,,,谁能指点一下?

Nothing 2008-10-7 20:55

将Picture1的AutoRedraw属性设置为True
页: [1]
查看完整版本: 画折线出问题了?高手指点一下!