VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Draw a line with 8 lines of code Just add a PictureBox

by Lior Elgali (4 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 30th November 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Draw a line with 8 lines of code Just add a PictureBox

Rate Draw a line with 8 lines of code Just add a PictureBox



Picture1.PSet (X, Y)
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Picture1.Line -(X, Y), RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End If
End Sub


Download this snippet    Add to My Saved Code

Draw a line with 8 lines of code Just add a PictureBox Comments

No comments have been posted about Draw a line with 8 lines of code Just add a PictureBox. Why not be the first to post a comment about Draw a line with 8 lines of code Just add a PictureBox.

Post your comment

Subject:
Message:
0/1000 characters