BTW - are you that sure that the whole contents of the Debug folder is
erased every time the project is built? I remember I copied necessary data
files to bin\Debug rather frequently and they remained intact regardless of
many subsequent builds...
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"cody" <no****************@gmx.net> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
You can use this:
Public Shared Function IsInIDE() As Boolean
If System.Diagnostics.Debugger.IsAttached Then
'The application is currently running from within the IDE.
Return True
Else
'The application is currently running as a compiled application.
Return False
End If
End Function
Thank you, but what if I start the app in VS without debug?
What would you do if you have a file that your application needs to open
and you don't want it to copy in the bin/obj directory every time manually?
There must be a way!
--
cody
Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk