473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Catching Event

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
Nov 20 '05 #1
2 1089
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

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:7h*********************@wards.force9.net...
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

Nov 20 '05 #2
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
"Omar Salinas" <os*******@mvps.org> wrote in message
news:uZ**************@TK2MSFTNGP11.phx.gbl...
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

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:7h*********************@wards.force9.net...
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


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Olli Piepponen | last post by:
Hi, I'm having a little problem catching keystrokes under Windows. I did a little research and found that with mscvrt.getch() one can cath a single key that is pressed. However this doesn't work...
9
by: vijay21 | last post by:
hi all, This is about javascript window events. I have a simple html file like this <html> <head> </head> <body onmousedown="alert()"> <form> <input type="text">
5
by: Ron L | last post by:
I have an MDI application with a number of child windows. In each child window I am catching the Closing event and having the child window decide if it should set cancel to true. The intent here...
2
by: Shravan | last post by:
Hi, Does anybody know how to catch unhandled exceptions in an application. I have tried using AppDomain.UnhandledException Event Application.ThreadException Event but they were not catching...
1
by: Andreas | last post by:
Hi, we have some problems with the following situation: A remote application A writes files to a directory monitored by a FileSystemWatcher-instance in application B. A creates the file with...
2
by: Sakharam Phapale | last post by:
Hi All, I am working on a project, where maximum operations carried out on Files and multi-dimensional arrays. Since array data is huge application takes too much memory. My problem is, after...
2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
2
by: Eric Sabine | last post by:
I built a generic exception handler form which allows the user to get information from it, print it, email it, etc. for exceptions for which I explicitly didn't handle in code, such as missing...
2
by: Eric Lilja | last post by:
Hello, consider this complete program: #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class Hanna {
5
by: lord.zoltar | last post by:
How can I prevent the big close button in the top of the window from closing the window? I want to have and "are you sure?" confirmation so the user must press "Yes" before the program ends. Right...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.