EnumWindows equivalent in VB .Net - pt 2

  • Thread starter Thread starter Geoff
  • Start date Start date
G

Geoff

Tom,
I am trying to find out if a specific app is already
running. And, in some cases, I will need to be able
to "click a button" in that other app if it IS running.

Using VS.Net 2003 and .Net Framework 1.1

Thanks again,
Geoff
-----Original Message-----
Geoff,

More then likely you'll end up using the "old" approach. But, that
really depends on what you were doing. Can you give some more detail
about what your actually trying to do...
..
 
Hi,
You can use the System.Diagnostics name space and use the Process class
for accessing information about different processes running on a system.

For example
imports System.Diagnostics

Dim x as Process() = Process.GetProcessesByname("notepad")

msgbox x(0).mainwindowtitle

Also you can use the following to get a list of processes

Dim prArray() as Process
prArray = Process.GetProcesses()

Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top