Mr Yoso
Mr Yoso

Reputation: 39

My.Application.Info.DirectoryPath

I have two projects (see image). I set my start-up form in "Project 2" but whenever i'm in the module 1 in the "Project 1" then I type My.Application.Info.DirectoryPath, the path gives me the path of "Project 2" which is wrong. I want to access the location path of my module in the "Project 1", how?

>> WRONG PATH

Cheers...

Upvotes: 0

Views: 2243

Answers (1)

Mr Yoso
Mr Yoso

Reputation: 39

This is to answer my question about the current path or directory of my project. I use the REPLACE function to remove the "\bin\Debug\" part like this:

Dim path As String
path = My.Application.Info.DirectoryPath
Dim path1 As String = path.Replace("\bin\Debug", "\")

Upvotes: 1

Related Questions