#1: Process class,
provides an access to local & remote processes, also enable to start & stop
Local system processes. Using the Process component, we can obtain a list
processes that are running, or can start a new process.
Namespace Required - System. Diagnostics
implemented the Code for obtaining Caption of main window of the running
the Running Processes (code for “Refresh” Button).
//Access all the running processes
foreach (Process var in Process.GetProcesses())
Caption if NOT Blank then
Caption of Process to ListBox
code for Exception (if any) }
you can pass this Process Caption to any other control. (Here
I used it for a ListBox Control)
execute the Application and
see the result (Figure
In this piece of writing, using C#
environment, we have seen how to retrieve the caption/title of a main window of
the running processes on the local system.