Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27156

VS 2010 process and msg help

$
0
0
Hello,

I'm having a problem here with the code below.

I'm trying to get this code to show the messagebox first before it kills the process can you help me please.

it kills the process but it isnt showing the message box first?.

Code:



            If chckmozil.Checked = True Then
                If ProcessRunning("firefox") Then
                    Dim proc() As Process = Process.GetProcessesByName("firefox")
                    For Each prrrrrrrrrrrrr As Process In proc
                        MsgBox("Blocked Sorry")
                        prrrrrrrrrrrrr.Kill()
                        log.lstprocc.Items.Add("Firefox Webbrowser" & " " & "|" & " " & Now.ToString)
                    Next
                End If
            End If


Viewing all articles
Browse latest Browse all 27156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>