vs.net/ pictures????

new214

New member
Joined
Dec 22, 2007
Messages
1
Programming Experience
Beginner
Heya all Ive just got some questions, Ive got a form in vs.net/vb.net and have linked it to a database. Now what I want to do is each time I click my button to go on to the next record I want a picture next to the record which changes according to data on the record e.g nokia 3210 record would display a pic of the phone etc- how do I do this???
 
Add a new field to the database. varchar or text (if you are using MS Access). name it imagePath. then into that field store the path for the image that match the telephone model.
For example in the same row where you have stored Nokia 3210 in the imagePath add something like this:
~/Images/Nokia3210.jpg

Then add an PictureBox to the form and assign the value of this field to the PicBox.

Regards :)
 
Back
Top