|
-
May 13th, 2004, 08:49 PM
#1
Thread Starter
Frenzied Member
How to tell when a particular window was opened? (subclassing?)
How can you tell when a window was opened in an external application?
-
May 14th, 2004, 03:58 AM
#2
Member
Well,
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.
-
May 14th, 2004, 04:12 AM
#3
Fanatic Member
If you want to know if another application is open? then here is the solution
Findwindow
HTH
-
May 14th, 2004, 02:04 PM
#4
Thread Starter
Frenzied Member
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?
-
May 15th, 2004, 01:00 AM
#5
Thread Starter
Frenzied Member
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?
-
May 15th, 2004, 02:49 PM
#6
Thread Starter
Frenzied Member
-
May 15th, 2004, 05:56 PM
#7
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|