![enter image description here][1]i have a windows application in C# with a setup project !!!
I used Image.FromFile("filename")
in my application but when make a setup project from it , and run it , it dose not show my pictures ! why ?
try
{
string timeOfDay = Convert.ToInt32(DateTime.Now.TimeOfDay.ToString().Substring(3, 2)).ToString();
this.BackgroundImage = Image.FromFile("BackGround\\Flowers (" + timeOfDay + ").jpg");
}
catch (Exception ex)
{
this.BackgroundImage = Image.FromFile("\\BackGround\\Flowers (59).jpg");
}