Results 1 to 7 of 7

Thread: How to tell when a particular window was opened? (subclassing?)

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269

    How to tell when a particular window was opened? (subclassing?)

    How can you tell when a window was opened in an external application?

  2. #2
    Member sahbasita's Avatar
    Join Date
    Feb 2004
    Location
    Loading ...
    Posts
    57

    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.
    BlueE@gles

  3. #3
    Fanatic Member sridharavijay's Avatar
    Join Date
    Sep 2002
    Location
    http://www.vijaysridhara.in
    Posts
    589
    If you want to know if another application is open? then here is the solution

    Findwindow
    HTH

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269
    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?

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269
    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?

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269
    anyone?

  7. #7
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    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.
    Please rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width