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\Projects\FileShareMgmt\FileShareMgmt\Resources\Correct.png";
public static string warning_Icon = @"C:\Users\xyz\Documents\Visual Studio 2008\Projects\FileShareMgmt\FileShareMgmt\Resources\Warning.png";
cell.Value = Image.FromFile("Resources/warning_Icon);
But I just want to use a relative path and not the full path like above.
For example something like this:
public static string Correct_Icons = "\Resources\Correct.png";
and cont. ..../ not working. Any suggestions?