Displaying image
-
hello can anyone help me? i wish to build a form where the user will type in a book name then when user press the button, there will be a image of the book on the pictureframe how to set the form to get the picture that i wanted from a folder? can any please help me? your help is much appeciated thank you
-
hello can anyone help me? i wish to build a form where the user will type in a book name then when user press the button, there will be a image of the book on the pictureframe how to set the form to get the picture that i wanted from a folder? can any please help me? your help is much appeciated thank you
you can set the 'picture' property of a picturebox object on your form to any image that you want, ex:
myPictureBox.picture="myPhoto.jpg"
if you want to get the image from a subfolder in the applications' folder, use something like:myPictureBox.picture="\images\The Book of Stuff\cover.jpg"
ormyPictureBox.picture=CurDir() & "images\The Book of Stuff\cover.jpg"
this is probably very obvious and probably u've already tried this method. if this doesnt help, supply more detail, id like to help. ------------------------ Jordan. III -
you can set the 'picture' property of a picturebox object on your form to any image that you want, ex:
myPictureBox.picture="myPhoto.jpg"
if you want to get the image from a subfolder in the applications' folder, use something like:myPictureBox.picture="\images\The Book of Stuff\cover.jpg"
ormyPictureBox.picture=CurDir() & "images\The Book of Stuff\cover.jpg"
this is probably very obvious and probably u've already tried this method. if this doesnt help, supply more detail, id like to help. ------------------------ Jordan. IIIsorry for the late reply thank u for your help by the way im using vb6 yes i have try those is working perfectly my lecturer want me to do a book searching example VB 6.0 will show the book picture VB.net will show other picture to do this i have set the picture name in the database but she says that this is a noob way to set it my db is like this book=vb.net pic=vbnet.jpg she want me to delete the pic column in the db that means all i can do is try to tell the program to get the picture once i enter the name(VB.net) n the picture will show up without refering to db(pic column) is this way possible? thank you for your help Jordan
-
sorry for the late reply thank u for your help by the way im using vb6 yes i have try those is working perfectly my lecturer want me to do a book searching example VB 6.0 will show the book picture VB.net will show other picture to do this i have set the picture name in the database but she says that this is a noob way to set it my db is like this book=vb.net pic=vbnet.jpg she want me to delete the pic column in the db that means all i can do is try to tell the program to get the picture once i enter the name(VB.net) n the picture will show up without refering to db(pic column) is this way possible? thank you for your help Jordan