18-06-22, 07:19 AM
(11-06-22, 10:11 PM)moh8880 كتب : I am try to close the excel app from memory -- Task manager after close and quite it from vb.net but i can't
Ex ::
Xlworkbook.close()
Xlsapp.quite()
ضع الكود التالي في حدث FormClosing
كود :
Dim xlp() As Process = Process.GetProcessesByName("EXCEL")
For Each Process As Process In xlp
Process.Kill()
If Process.GetProcessesByName("EXCEL").Count = 0 Then
Exit For
End If
Next
