VB Code:
  1. Private Sub Command1_Click()
  2.     Picture1.Circle (1000, 500), 250, 10
  3.     Picture1.Line (1000, 750)-(1000, 2000), 10  'body
  4.     Picture1.Line (1000, 1100)-(450, 900), 10  'left arm
  5.     Picture1.Line (1000, 1100)-(1550, 900), 10 'right arm
  6.     Picture1.Line (1000, 2000)-(450, 2700), 10  'left leg
  7.     Picture1.Line (1000, 2000)-(1550, 2700), 10  'right leg
  8.     Form1.ImageList1.ListImages.Add 1, , Picture1.Image
  9. End Sub
  10.  
  11. Private Sub Command2_Click()
  12.     Picture1.Cls
  13. End Sub
  14. Private Sub Command3_Click()
  15.     Picture1.Picture = ImageList1.ListImages(1).Picture
  16.     Picture1.Refresh
  17. End Sub


Basically I'm trying to come up with a way to write sprites using pictures in a picturebox made using code.

how ever I can't get the picture in the picturebox to load into imagelist, then loaded back into the picturebox after clearing the picture box...any ideas?