Application.ExecutablePath not recognisze by studio express 2005

G

gs

I do want the path and the filename of the executable. However, visual
studio .net basic express 2005 rejects
Application.ExecutablePath
Error 1 Name 'Application' is not declared. .....

question what should I import or what prefix I should use?
 
G

gs

I think I got around the problem with

appPathFn = My.Application.Info.DirectoryPath & "\" &
My.Application.Info.AssemblyName

I hope there is a simpler way.
 
C

Cor Ligthert [MVP]

gs,

Please don't restart your questions in new threads, this is misleading for
those who try to help you, while it is very bad for searching this
newsgroup. It seems than if threads are not completely answered.

Thanks in advance.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top