Re: Determine whether App is running is Visual Studio
From: Éric Moreau (eric.moreau_.N.O.S.P.A.M.__at_videotron.ca)
Date: 04/19/04
- Next message: cybertof: "Re: Component sharing between 2 applications"
- Previous message: Rahul Anand: "Re: Array Fundamentals"
- In reply to: cody: "Determine whether App is running is Visual Studio"
- Next in thread: cody: "Re: Determine whether App is running is Visual Studio"
- Reply: cody: "Re: Determine whether App is running is Visual Studio"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 06:00:41 -0400
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
-- HTH Éric Moreau, MCSD Conseiller Principal / Senior Consultant Concept S2i inc.(www.s2i.com) "cody" <no_spam_deutronium@gmx.net> wrote in message news:uGXuH$eJEHA.952@TK2MSFTNGP12.phx.gbl... > Is there a way to do: > > #if APP_IS_RUN_IN_VS > path = ".\..\..\..\myfile.rpt"; > #else > path = "myfile.rpt"; > #endif > > I don't want to put the files into debug/bin dir since they woulbe be > deleted on rebuilt then. > > -- > cody > > Freeware Tools, Games and Humour > http://www.deutronium.de.vu || http://www.deutronium.tk > >
- Next message: cybertof: "Re: Component sharing between 2 applications"
- Previous message: Rahul Anand: "Re: Array Fundamentals"
- In reply to: cody: "Determine whether App is running is Visual Studio"
- Next in thread: cody: "Re: Determine whether App is running is Visual Studio"
- Reply: cody: "Re: Determine whether App is running is Visual Studio"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|