|
-
Aug 18th, 2009, 12:35 PM
#1
Thread Starter
Junior Member
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...
-
Sep 3rd, 2009, 02:27 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|