Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Catching application start/close events

Catching application start/close events

Scheduled Pinned Locked Moved C#
tutorialdatabase
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Trickster SWE
    wrote on last edited by
    #1

    I want my application to trigger on external application start/close events but haven't been able to figure out how to do this. For example. I would like my application to execute a certain task every time Internet Explorer is executed on the system. I would greatly appreciate if someone had a solution to this! Thanks! // T

    X 1 Reply Last reply
    0
    • T Trickster SWE

      I want my application to trigger on external application start/close events but haven't been able to figure out how to do this. For example. I would like my application to execute a certain task every time Internet Explorer is executed on the system. I would greatly appreciate if someone had a solution to this! Thanks! // T

      X Offline
      X Offline
      XRaheemX
      wrote on last edited by
      #2

      Well, one way you could do this (which isn't the best way I don't imagine, but I can't think of any other way at the moment) is to create a task watcher process that watches the task list and kicks off event "alerts" that you set when certain tasks are created/exited.

      T 1 Reply Last reply
      0
      • X XRaheemX

        Well, one way you could do this (which isn't the best way I don't imagine, but I can't think of any other way at the moment) is to create a task watcher process that watches the task list and kicks off event "alerts" that you set when certain tasks are created/exited.

        T Offline
        T Offline
        Trickster SWE
        wrote on last edited by
        #3

        Yes, this is how I do it now.. I don't feel that this is the correct way of doing it though. I would imagine that you could hook on IE or trap a windows message to do this instead. I've tried searching for it on the net and haven't found anything :-( Hopesfully someone will have a solution :-)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups