I have an image in my application and i have a picture in my winforms
public static string Correct_Icons = @\"C:\\Users\\xyz\\Documents\\Visual Studio 2008\\
For my program, Path.GetDirectoryName (Assembly.GetExecutingAssembly().Location)
returns
C:\code\test\Junk\bin\Debug
.
cell.Value = Image.FromFile(
Path.Combine (
Path.GetDirectoryName (Assembly.GetExecutingAssembly().Location),
"Resources/warning_Icon"));
Of course, usually you would embed the resources in your assembly unless you want to change them without a recompile.