k step 1:
open up a new form named frmpicmaker. and on it put a picture box in it.
name the picture box picbox1
2. double click the form (not the picbox) and bring up its code, in there type:
Code: Select all
picbox1.AutoRedraw = True
3. next line in the forms code type in
Code: Select all
picbox1.DrawWidth = 2
4. next line still in the code of the form type
Code: Select all
picbox1.BackColor = vbWhite
5. heres sumthing else that i dont no wat it does but it works, type
Code: Select all
Dim I As Integer
in the forms code
6. now in the boxes coding type
Code: Select all
frmpicmaker.ScaleMode = vbPixels
7. and now put
Code: Select all
picbox1.ForeColor = vbBlack
8.now go down a few lines from theforms coding and put in
Code: Select all
Private Sub picbox1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
picbox1.Line (X, Y)-(X, Y)
End If
End Sub
9. now down a few more spaces and put
[code]Private Sub picbox1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
picbox1.Line -(X, Y)
End If
End Sub