I am working on an application that installs a system wide keyboard hook. I do not want to install this hook when I am running a debug build from inside the visual studio (o
Try: System.Diagnostics.Debugger.IsAttached