Groups | Blog | Home
all groups > vb.net > april 2004 >

vb.net : Catching Event


Omar Salinas
4/22/2004 6:34:03 PM
Unless you are intercepting the execution of programs (you can do that, with
the registry) the oly way I see of doing this is using a timer, and listing
the programs that are running. Check Process class, under System.Diagnostics

Regards

[quoted text, click to view]

Deadly_M
4/22/2004 10:58:03 PM
I have asked this question before but it was a while ago , hope there are
some new readers here now

Windows XP, VB.NET

I want to catch the event of a program being run
for example user loads notepad, im assuming there is an event triggered that
can be caught with VB
i want to detect any programs being run not specifically notepad , but i
need to be able to read the program's .exe name back to my code

My program will most likely be running as a service if this helps
Thanx in advance

_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com

Deadly_M
4/26/2004 8:53:51 PM
im using that technique at the moment but to me it looks like a typical
example of bad code , ie a timer etc
Not that your suggestion is bad cause thats the way im doing it just now.
Thanx anyway , at least i know that the way im going just now isnt too bad


[quoted text, click to view]

AddThis Social Bookmark Button