title: How to detect that C# Windows Forms code is executed within Visual Studio?
body: <p>Is there a variable or a preprocessor constant that allows to know that the code is executed within the context of Visual Studio?</p>