Results 1 to 17 of 17

Thread: Detect if program is not responding!

Hybrid View

  1. #1
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Detect if program is not responding!

    Quote Originally Posted by Jhivago View Post
    i have a button and a textbox

    if i press the button it will put in the textbox 1 or 0
    1 if cserver.exe is running
    0 if cserver.exe is not responding
    From what I can tell this would still require the code I posted above except instead displaying a message box saying whether or not the program was responding you would display the particular value in a text box.

    I have an idea try the code I posted above using the instructions from the page I linked to.

    # Start a new Standard EXE project in Visual Basic.
    # Form1 is created by default. Place three command buttons on the form and name them cmdCheck, cmdLaunch, and cmdKill. Change their Caption property to Check, Launch, and Kill, respectively.

    Add the code I posted above to the form.

    All I changed in the code I posted above was:

    vb Code:
    1. Set modObjIE = CreateObject("cserver.exe")

    from

    vb Code:
    1. Set modObjIE = CreateObject("InternetExplorer.Application")
    Last edited by Nightwalker83; Apr 9th, 2011 at 09:03 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

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