I am trying to get the path of an image file which I added in solution explorer in Visual Studio, but I couldn't get the relative path of that image. H is the file structure of my project:
/BulutDepoProject /FolderIcon Folder.ico Main.cs
I can get the image like this :
"C:\Users\Tolga\Desktop\BulutDepo\BulutDepoProject\FolderIcon\Folder.ico"
But I should be able to get it with something like :
"~\FolderIcon\Folder.ico"
I guess I don't know the exact syntax of it so I cant fetch the image. :(
See Question&Answers more detail:os