pulling my hair out over this picturebox!!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jarremw
    New Member
    • Jan 2008
    • 50

    pulling my hair out over this picturebox!!!!

    hi there, i have a mysql db that holds the file paths for images, what i want to do is display the picture that the filepath points in the picturebox in my app, how do you do this, i have been googling for about 2 hours and nothing at all!!!!

    thanks
  • VBWheaties
    New Member
    • Feb 2008
    • 145

    #2
    Originally posted by jarremw
    hi there, i have a mysql db that holds the file paths for images, what i want to do is display the picture that the filepath points in the picturebox in my app, how do you do this, i have been googling for about 2 hours and nothing at all!!!!

    thanks
    Code:
    Set PictureBox.Picture = LoadPicture("C:\MyPic.jpg")
    Last edited by VBWheaties; Mar 5 '08, 09:06 PM. Reason: put SET in since it is VB6

    Comment

    • jarremw
      New Member
      • Jan 2008
      • 50

      #3
      im in vs 2005 not vb6 so the set property isnt working..any other ideas?

      thanks for the reply

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        If you have the file name of an image, and want to display that image in a picturebox, your documentation for the picturebox control should give you the answer fairly easily.

        (I'd tell you, but I'm an old VB6 developer.)

        Comment

        • kadghar
          Recognized Expert Top Contributor
          • Apr 2007
          • 1302

          #5
          Have you tried with the LOAD method??

          [CODE=vb]picturebox.load ("c:\mypic.jpg" )[/CODE]

          that one works for vb2005 xpress ed.

          Comment

          • QVeen72
            Recognized Expert Top Contributor
            • Oct 2006
            • 1445

            #6
            Hi,

            Try This in Form_Load event:

            Me.BackgroundIm age = System.Drawing. Image.FromFile( "C:\MyPict1.bmp ")

            Regards
            Veena

            Comment

            Working...