Hello,
In a program I am writing I have to kill another program if it is running.
The code is:
If dzhw1.GetWindowHandle("Program2", "Program2" ) > 0 Then
If Msgbox ("Now Kill Program2 ?","Routes",cMsgBoxYesNo, cMsgBoxQuestion)= cYes Then
dzhw1.KillProcess("Program2")
Return true
Else
Return false
End If
Else
Return true
End If
This code works wel - the test works correct and the killing is done if applicable -, however, after the kill process the Close Button (X) of my program does not work anymore (disabled?).
Anybody idea what is going wrong?
Harry
In a program I am writing I have to kill another program if it is running.
The code is:
If dzhw1.GetWindowHandle("Program2", "Program2" ) > 0 Then
If Msgbox ("Now Kill Program2 ?","Routes",cMsgBoxYesNo, cMsgBoxQuestion)= cYes Then
dzhw1.KillProcess("Program2")
Return true
Else
Return false
End If
Else
Return true
End If
This code works wel - the test works correct and the killing is done if applicable -, however, after the kill process the Close Button (X) of my program does not work anymore (disabled?).
Anybody idea what is going wrong?
Harry