How could I have a program monitor to see if another programs form is opened

agno

New member
Joined
Aug 25, 2007
Messages
3
Programming Experience
1-3
Basically I need to write a program thats whole function is to monitor to chk to see if a certain form has been opened that is part of another program. I just cant think of a way that can detect this.
 
it will probably involve API calls to find the window and get its text.. Google for:

VB.NET FindWindow
VB.NET GetWindowText
 
A similar request was up recently (see thread), Using the SHELLHOOK you can get notified about HSHELL_WINDOWCREATED and its window handle that can be used with GetWindowText. You can also combine with GetParent/GetAncestor calls to check if this window belongs to another window.
 
You can get the window name by opening it and doing the FindWindow, etc manually the first time around. The name will always be the same.

You can also download programs that will show the name and handle of any window your mouse is over. I am forgetting the names of the programs but they are used for subclassing and hooks for this very purpose: to get the name of a window.
 
Back
Top