Results 1 to 2 of 2

Thread: Need to include image files...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2005
    Posts
    30

    Need to include image files...

    Hey all, using Visual Studio 2005, I have an app I'm writing that uses PictureBox controls...in the code, I set the image for the PictureBox control to something like:
    PictureBox1.Image = Image.FromFile(CurDir() & "\internet1.jpg")
    PictureBox2.Image = Image.FromFile(CurDir() & "\internet2.jpg")

    However, when building the program, then moving the executable, say to the desktop or another machine, the reference is no longer valid...how can I include the file in the build, then set the PictureBox.image property to that image?

    Please help...

  2. #2
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: Need to include image files...

    Put them in a resource file and not have to hassle.
    For jpg files: http://support.microsoft.com/kb/q194409/
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width