Some of the features included in the application I'm currently developing are supposed to be used in 'administrator' mode, but, in fact, the only administrator is the developer and it's likely that none of these will be used by final users.
Therefore, instead of defining a particular user to be the administrator, why not letting the application to know wheter it is running whithin the development environement or as a standalone, compiled application
I remember a property like this was exposed in VB6, and I assume it is also included in the .net environement, but after some time of messing with the object browser and the internet, I give up and ask for HELP!
Where can I find this property

How can I know whether the app is running in development mode?
Shruti00
I'ts a good solution.
Though what I had in mind is something that could also be used in the event that the need arises to promote the application to administrator mode.
Thanks anyway, Boban.
Sweeps78
That's it!.
A million thanks, Andrej!
robinjam
Hi,
you can inspect Debugger.IsAttached property., It will return a value of true, if the debugger is attached to the process, which is the case when running within the IDE:
if (System.Diagnostics.Debugger.IsAttached){
MessageBox.Show("I'm probably running within the VS IDE");
}
Andrej
meg1
#if DEBUG
.... code to be executed only in debug configuration
#else
.... code to be executed only in release configuration
#endif
You can use either DEBUG or RELEASE.