Detect if app was started from VS

  • Thread starter Thread starter bz
  • Start date Start date
B

bz

Hi,

I need to detect if the winform application was started from within VS
2005
Is it possible?

Thanks
 
I need to detect if the winform application was started from within VS
2005
Is it possible?

Depending on what exactly you're trying to do, you could look at the
Debugger.IsAttached property, or you could check your process's parent.
As far as I know, you'd have to use WMI or the native Win32 API (via
p/invoke) to get the latter.

Pete
 
Depending on what exactly you're trying to do, you could look at the
Debugger.IsAttached property


I guess this is enough
Thank you

, or you could check your process's parent.
 
Back
Top