Hi,
i am trying to create a program where user can add picture to a form at runtime..and store it in a database as well...i am using following code to define array of picturebox and load a picture in it...
Dim mimage() As PictureBox
ReDim mimage(0 To num1) As PictureBox
[B]mimage(num1).Picture = LoadPicture("path\filename.jpg")[/B]
but getting a error on the bold line - "object variable or with block variable not set"
Please help to resolve this...