Detect if app was started from VS

B

bz

Hi,

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

Thanks
 
P

Peter Duniho

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
 
B

bz

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top