stustarz Posted February 9, 2003 Posted February 9, 2003 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: 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 Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
*Experts* Volte Posted February 9, 2003 *Experts* Posted February 9, 2003 Me.pbLogo.Image = Image.FromFile("Path Goes Here") Quote
stustarz Posted February 9, 2003 Author Posted February 9, 2003 Fantastic and so simple! Maybe i should search msdn a little harder next time Thanks very much Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.