How can you tell when a window was opened in an external application?
How can you tell when a window was opened in an external application?
Can you give an example about the project you are trying to make, beacause your question is not clear enough. are you trying to make a docking system project /resident that always check and running all the time?
If so, then you can use a global variable (defined as public) it can be placed in module. then give them a start value, this value will be the recognize as a closed form, Then you must create a function in the main program that alway check to this variable every 1 sec, fro exmpl. then put a code to change the value of the global variable at the form_load event. When the check function in main form check that the global variable value had chaged, pop-up a message that inform to us the particular form is opened.
May it helps you.
If you want to know if another application is open? then here is the solution
Findwindow
HTH:o
no..
like lets say you want to detect when a new form is shown in an external application (say a msgbox, or a form that loads up to display program options or something)
how can it be done?
no..
like lets say you want to detect when a new form is shown in an external application (say a msgbox, or a form that loads up to display program options or something)
how can it be done?
anyone?
VaxoP, the only thing I can think of is to get a list of each window and just wait for your new window to open up. If your app is opened after the program shows its new form, then the only thing you'll be able to do is get the time the other process began.