How to detect application start?

leon_nerd

New member
Joined
Jul 20, 2007
Messages
1
Location
India
Programming Experience
1-3
Hi guys,

I need to make an application and I need to know few things for that. I hope to get some help here.

1.) How can I make my vb.net application run in the background? Something like items in the system tray. I want my application to keep running in the background so that it can get notifications.

2.) What kind of notifications?
My application should run in the background and whenever a user tries to start an application a notification needs to be sent to/obtained by my application. So, suppose a user starts notepad then my application should be able to detect that a new application has started along with the name of the application. Simply saying..how can I make my application know that a new application has started?

Thanks a lot in advance.
 
1: Use the NotifyIcon component, the Form has ShowInTaskbar property and Hide method that is relevant.

2: Subscribe to the WMI event ProcessStartTrace, WMI Code Creator will give you code to work with, it will only work when your app is in Release mode, not Debug mode last I tested.
 
Back
Top