vb.net 结束ppt程序

前端之家收集整理的这篇文章主要介绍了vb.net 结束ppt程序前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button1.Click
        Dim plist() As Process
        Dim ppo As System.Diagnostics.Process
        plist = Process.GetProcesses
        For Each ppo In plist
            If ppo.ProcessName = "POWERPNT" Then
                ppo.Kill()
            End If
        Next
    End Sub
End Class
原文链接:https://www.f2er.com/vb/258951.html

猜你在找的VB相关文章