A picture at run time

catbollu

Member
Joined
Dec 15, 2004
Messages
5
Programming Experience
1-3
Ok I am building a windows application using VB.net. I have an access database with a table that holds customer information and a picture of the customer. I want the picture to come up when all the customer information comes up. How do I attach the fields picture to the image box?
 
Assuming that the "picture of the customer" field value is a file name, use

VB.NET:
 Dim aPicture As System.Drawing.Image 
 
PictureBox1.BackgroundImage = aPicture.FromFile(<Folder Location> \ <Image name from database>)

 
you will need to use getchunk and appendchunk. Unfortunatly, I have not done much work with these so I can't be very helpful. If you search yahoo I'm sure you can find something useful.
 
Back
Top