Picture box problem?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • THEAF
    New Member
    • Mar 2007
    • 52

    Picture box problem?

    OK! I posted a similar question some time back but I didn't understand it fully as I'm quite fresh to VB coding. So I'll try once more.

    On my VB form it shows details of staff, which works perfectly fine (using the list box) and what I want is the picture box or the image that will show the picture of each staff when a different one is selected.
    I am using Access with my VB to store the details. I tried using the OLE Object on the design view but couldn't figure out how to join it with VB.

    So could you please give me some code that will help me show a picture for each staff and does it have anything to do with the OLE Object. If this can't be done with Access then give some help with the picture problem.

    Please shine some light on this problem and thanks for any answers.
    Last edited by Killer42; Jan 9 '08, 01:55 AM.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    are you also trying to store the picture in the database ?

    Comment

    • THEAF
      New Member
      • Mar 2007
      • 52

      #3
      Originally posted by debasisdas
      are you also trying to store the picture in the database ?
      Yes im trying to store the picture if possible.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        If you have a look in the HowTo's section, I believe we have VB samples there that show how to store and retrieve a photo in an Access database.

        You'll see them there, with the word "BLOB" at the start. (It stands for something like "binary large object").
        Last edited by Killer42; Jan 9 '08, 01:51 AM.

        Comment

        • THEAF
          New Member
          • Mar 2007
          • 52

          #5
          Fanks alot, its just what i've been looking for 4 about a week.

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Glad we could help. :)

            Comment

            Working...