Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Displaying image

Displaying image

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestionlearning
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GaryKoh
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • G GaryKoh

      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

      N Offline
      N Offline
      Nadroj
      wrote on last edited by
      #2

      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" or myPictureBox.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

      G 1 Reply Last reply
      0
      • N Nadroj

        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" or myPictureBox.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

        G Offline
        G Offline
        GaryKoh
        wrote on last edited by
        #3

        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

        N 1 Reply Last reply
        0
        • G GaryKoh

          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

          N Offline
          N Offline
          Nadroj
          wrote on last edited by
          #4

          sorry, i dont understand that. how about u paste some of your code or email me your project .zip'ed if its too long to paste. nadroj_@hotmail.com ------------------------ Jordan. III

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups