|
-
Sep 24th, 2010, 07:07 AM
#1
Thread Starter
Fanatic Member
Detect if the application is a console or WinForms application
I was wondering whether anyone know's a way to detect whether the current application is a console or a winforms application.
The reason that I want to do this is that I am developing a library with a global error handler in it and I need to know what type of application it is in order to be able to subscribe to the appropriate exception event.
Obviously I could get the user to pass in a parameter specifying what type of application it is, but I would rather deal with that automatically so its all encapsulated from the user of the class.
Thanks for any help in advance.
Satal
If you find a response helpful then remember to Rate it
Personal website Sam Jenkins
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|