1.

Killing Process of excel and powerpoint using vb.net

Answer»

Below code is USED to KILL process of excel and powerpoint with USING vb.net:-

Private SUB Button1_Click(ByVal sender As System.Object, ByVal E As System.EventArgs) Handles Button1.Click
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("EXCEL")
For Each p As Process In pProcess
p.Kill()
Next
Dim pProcess2() As Process = System.Diagnostics.Process.GetProcessesByName("POWERPNT")
For Each p As Process In pProcess2
p.Kill()
Next
End Sub



Discussion

No Comment Found