开发者

how to reference a file that was included in the project in vb.net

开发者 https://www.devze.com 2022-12-26 01:30 出处:网络
in which directory is an image copied when you i开发者_如何学Pythonnclude it in your project?If it\'s copied to the output directory, you can use Path.Combine:

in which directory is an image copied when you i开发者_如何学Pythonnclude it in your project?


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")
0

精彩评论

暂无评论...
验证码 换一张
取 消