Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
MKlucher16-Jun-04 6:40
MKlucher16-Jun-04 6:40 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
Heath Stewart16-Jun-04 8:36
protectorHeath Stewart16-Jun-04 8:36 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
MKlucher16-Jun-04 10:13
MKlucher16-Jun-04 10:13 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
Heath Stewart16-Jun-04 10:15
protectorHeath Stewart16-Jun-04 10:15 
GeneralCalendar Control Pin
Tarakeshwar Reddy15-Jun-04 19:04
professionalTarakeshwar Reddy15-Jun-04 19:04 
GeneralRe: Calendar Control Pin
Heath Stewart16-Jun-04 4:04
protectorHeath Stewart16-Jun-04 4:04 
GeneralSending messages from a thread Pin
caraboss15-Jun-04 18:18
caraboss15-Jun-04 18:18 
GeneralRe: Sending messages from a thread Pin
Corinna John15-Jun-04 20:04
Corinna John15-Jun-04 20:04 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 3:45
caraboss16-Jun-04 3:45 
GeneralRe: Sending messages from a thread Pin
Heath Stewart16-Jun-04 4:00
protectorHeath Stewart16-Jun-04 4:00 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 4:17
caraboss16-Jun-04 4:17 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 4:40
caraboss16-Jun-04 4:40 
QuestionIndexer for a variables property? Pin
khan200015-Jun-04 17:00
khan200015-Jun-04 17:00 
AnswerRe: Indexer for a variables property? Pin
Heath Stewart16-Jun-04 3:58
protectorHeath Stewart16-Jun-04 3:58 
GeneralRealmForge GDK Game Development kit Pin
Liskl15-Jun-04 16:37
Liskl15-Jun-04 16:37 
GeneralDrag and Drop to Explorer Pin
Anders Molin15-Jun-04 14:17
professionalAnders Molin15-Jun-04 14:17 
GeneralRe: Drag and Drop to Explorer Pin
Heath Stewart16-Jun-04 3:48
protectorHeath Stewart16-Jun-04 3:48 
GeneralRe: Drag and Drop to Explorer Pin
Anders Molin16-Jun-04 3:52
professionalAnders Molin16-Jun-04 3:52 
GeneralDetermining the currently running processes Pin
sam00715-Jun-04 12:54
sam00715-Jun-04 12:54 
Hi,

I'm trying to find a way of associating a form with a window.
ie. when a user opens a particular window or document, an associated
form will popup displaying detail in regard to this document/window.

At the moment, I'm looking at the processes running on a machine to
determine the currently opened apps/windows and running through a
collection of objects to determine if any of these objects are related
to the app or window (from file name)

ie.
I check the processes periodically using a timer

foreach (Process process in Process.GetProcesses()) {
if (onlyApplications) {
if (process.MainWindowHandle != IntPtr.Zero)
get the associated file
feed this into a collection
blah blah blah

if the list changes through a timer tick, refresh the collection.


It seems that this is only way I can determine and keep a relatively accurate list of the currently running processes.

My question is basically, is there an event that fires when a new process
starts up or the content of the currently running processes change.

or

Is there a better way of doing this?



Thanks very much
GeneralRe: Determining the currently running processes Pin
Dave Kreskowiak16-Jun-04 3:42
mveDave Kreskowiak16-Jun-04 3:42 
GeneralXmlSerializer - Invalid Xml Header Pin
AndyBewley15-Jun-04 12:11
sussAndyBewley15-Jun-04 12:11 
GeneralRe: XmlSerializer - Invalid Xml Header Pin
Heath Stewart16-Jun-04 3:43
protectorHeath Stewart16-Jun-04 3:43 
GeneralRe: XmlSerializer - Invalid Xml Header Pin
bigTrak17-Jun-04 12:20
bigTrak17-Jun-04 12:20 
GeneralRe: XmlSerializer - Invalid Xml Header Pin
Heath Stewart17-Jun-04 17:09
protectorHeath Stewart17-Jun-04 17:09 
GeneralConstructors Pin
Ganjah78615-Jun-04 11:57
Ganjah78615-Jun-04 11:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.