i need to create pictureboxes

tahu191

Well-known member
Joined
Oct 27, 2005
Messages
48
Location
USA
Programming Experience
Beginner
in my program everytime the timer ticks it will cause a picturebox to be created and be on the form, how do i do this? because i have tried some things but it didnt work please help!
 
VB.NET:
Dim pb As New PictureBox 'Create the PictureBox.

'Set the desired properties.
With pb
    .Location = New Point(100, 20)
    .Size = New Size(150, 150)
    .Load("image path here")
    'etc.
End With

'Add the control to the form.
Me.Controls.Add(pb)
 
Back
Top