473,414 Members | 1,630 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,414 software developers and data experts.

EnumWindows equivalent in VB .Net - pt 2

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-----
On 2003-11-20, Geoff <an*******@discussions.microsoft.com> wrote:
I need to reproduce functionality from a VB6 application in VB .Net. In the VB6 app, I use FindWindow, EnumWindows and other related functions. Is there a .Net NameSpace
that replaces these functions for more "compliance"
with .Net, or should I just use the "old" approach?

Thanks in advance,
Geoff


Geoff,

More then likely you'll end up using the "old" approach.

But, thatreally depends on what you were doing. Can you give some more detailabout what your actually trying to do...

--
Tom Shelton
[MVP - Visual Basic]
.

..
Nov 20 '05 #1
1 4865
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

Nov 20 '05 #2

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

Similar topics

14
by: John | last post by:
Is there an equivalent of COM on Linux that I can get through Python. My need is to have some sort of language independent component framework. I can think of CORBA but I have to have a server...
7
by: Tim Conner | last post by:
Hi, I am an ex-delphi programmer, and I having a real hard time with the following simple code (example ): Which is the equivalent to the following code ? var chars : PChar; sBack, s :...
5
by: Sean Dudley | last post by:
I am currently enumerating windows via the EnumWindows API. I noticed that for some reason the very first time I call my enumwindows routine (inside or outside of a thread) it seems to be very...
3
by: Tim Chase | last post by:
I have found that EnumWindows works very quickly. In DotNet (I use C#), I can enumerate the windows, narrow them down to just the windows which are the main windows (i.e., windows which you can...
11
by: Wayne | last post by:
I have some code written in delphi that uses EnumWindows, I would like to begin to translate this code to C#. Is there a built in EnumWindows call in Csharp? or do I have to import the API and use...
1
by: Frederic_BD | last post by:
Hello! I am trying to get a list of all the process running on WinCE. I first developed my code on NT (which is working fine) and now I am porting it to WinCE 4.20. I am using embedded Visual...
4
by: Geoff | last post by:
I need to reproduce functionality from a VB6 application in VB .Net. In the VB6 app, I use FindWindow, EnumWindows and other related functions. Is there a .Net NameSpace that replaces these...
14
by: grid | last post by:
Hi, I have a certain situation where a particular piece of code works on a particular compiler but fails on another proprietary compiler.It seems to have been fixed but I just want to confirm if...
1
by: =?Utf-8?B?VHJlY2l1cw==?= | last post by:
Hello, Newsgroupians: I've a question regarding the Win32 function EnumWindows. First, the prototype for EnumWindows is as follows... BOOL EnumWindows(WNDENUMPROC lpEnumFunc, LPARAM lParam) ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.