hello
I create simple windows application
I use c#2008 xpress edition
after i publish this application ,i run it
there an error saying that it couldn't find girl.jpg
I have place the girls.jpg in debug folder.
//--------------------------------------------------------
private void Form1_Load(object sender, EventArgs e)
{
Image image = Image.FromFile("girl.jpg");
pictureBox1.Image = image;
}
}
thx
Loading
Hiren SoniPosted Jan 9, 2010, 12:40 AM
denny simonPosted Jan 9, 2010, 4:46 AM
thank you ,but I use csharp 2008 express edition,not visual studio 2008
I will try wether your advise can be applied in c#exprees edition 2008
denny
denny simonPosted Jan 8, 2010, 9:20 PM
the code run well in debug
but it doesnt after published and use in another computer.
the name of the file is "girl.jpg" not "girls.jpg".
I have tried to find girl.jpg in c:\programfile\myapplication but not available.
(the application name is "myapplication")
thx
Kirtan PatelPosted Jan 8, 2010, 8:57 PM
you have written jpg it can be jpeg program will take both differently ..and also check if file is hidden or not ..
if it helps you then check "do you like this answer" check box :)