|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Application.ExecutablePath not recognisze by studio express 2005I 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? I think I got around the problem with
appPathFn = My.Application.Info.DirectoryPath & "\" & My.Application.Info.AssemblyName I hope there is a simpler way. Show quoteHide quote "gs" <gs@dontMail.telus> wrote in message news:uZITcjckGHA.3304@TK2MSFTNGP03.phx.gbl... >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? > > gs.
The ExecutablePath is including the executable name Teh application.startup path is the same without that http://msdn2.microsoft.com/en-us/system.windows.forms.application.startuppath(VS.80).aspx I hope this helps, Cor Show quoteHide quote "gs" <gs@dontMail.telus> schreef in bericht news:uZITcjckGHA.3304@TK2MSFTNGP03.phx.gbl... >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? > > 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 Show quoteHide quote "gs" <gs@dontMail.telus> schreef in bericht news:uZITcjckGHA.3304@TK2MSFTNGP03.phx.gbl... >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? > >
[STRING] extract a word and text around it
Learning Programming FileSystemWatcher raises Changed Twice.... Memory Leaks Overrides and mybase ?? Newbie Question VB2005 - Sort DataGridView on Text (FormattedValue) of a ComboBox column instead of underlying value Refer to an Instance of a form Timer1_Tick is never fired appPath |
|||||||||||||||||||||||