Hi, thanks for the reply,
I thought about it but FindWindow depands on the Z order of the windows.
I solved it by setting a propery like "IsWindowMain" and checking all child
forms of the MainWindowHandle.
Thanks again
-Moty-
"Salvador" <Sa******@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
Hi,
You can use the Win32 API FindWindow if you know the process name, that
will
return the Window handle.
Cheers
--
Salvador Alvarez Patuel
Exony Ltd - London, UK
"Moty Michaely" wrote:
Hello all,
I am enumerating vb6 process from c# application by name.
I need to send message to all processes that has the specified name but
for
this purpose I need the handle of the main window for each process
returned.
I once read that vb6 app mainWindowHandle is the handle of the hidden
window
that runs the application.
If so, what's the way to get the handle of the main window of each vb6
application by it's process info???
- Moty -