in which directory is an image copied when you include it in your project?
+1
A:
If it's copied to the output directory, you can use Path.Combine
:
Shared ReadOnly AppDirectory As String = Path.GetDirectoryName(New Uri(GetType(Program).Assembly.CodeBase).LocalPath)
Dim filePath As String = Path.Combine(AppDirectory, "MyFile.jpg")
SLaks
2010-04-09 18:18:50