Adding an image to a control at runtime
Hi,
I wish to add an image to a control on my application at runtime. I am using the Image.FromFile() method and this works fine on the developement machine. But then when i run the application on the test machine, i get an error because it looks for a file with the specified path in my code.
How do i ensure that the application is able to look for the image file on the test machine?

Adam ErstelleRank #3,005 · 479 reputationPosted Aug 12, 2004, 7:14 AM EDT
jkersch23 reputationPosted Aug 13, 2004, 3:29 AM EDT
MykonineRank #2,671 · 521 reputationPosted Aug 13, 2004, 10:16 AM EDT
p.jones132 reputationPosted Aug 17, 2004, 12:16 AM EDT