Load image dynamically

stustarz

Junior Contributor
Joined
Jan 10, 2003
Messages
246
Location
Earth
I am using vb.net to control an access database. There is a column in the database containing an image name - I would like to have this image load into an image or picture box (whichever is best) but am not sure how to do this. I thought this would work:

Visual Basic:
Me.pbLogo.Image = "C:\Program Files\AppLocation\" & varSelectedLogo

varselectedlogo being the variable that stores the image name.

But this doesn't work - anyone know how this is done

Thanks
 
Back
Top