Results 1 to 3 of 3

Thread: close other applications from my code

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Cochin, India
    Posts
    350

    Question close other applications from my code

    How can I close another application from my code if I know the caption on the titlebar.
    DOK OCK : "The power of .net in the palm of my hand, nothing will stand in my way. Nothing."

  2. #2
    Lively Member dastudios's Avatar
    Join Date
    Feb 2006
    Posts
    72

    Re: close other applications from my code

    I will have to find the code I wrote for doing this - it can be done, you just have to get the handle of the window that you want to close and then find what process owns it - then it is as simple as finding the process ID and killing it.

    I will post a solution to this as soon as I dig it out of my code archive

  3. #3
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: close other applications from my code

    try to look at this thread
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

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