
Originally Posted by
Jhivago
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:
Set modObjIE = CreateObject("cserver.exe")
from
vb Code:
Set modObjIE = CreateObject("InternetExplorer.Application")