title: system.invalidoperationexception vb.net
body: <p>I make a program using vb.net in visual studio 2012.</p>
  
  <p>This program to kill process another application in list.</p>
  
  <p>but when i run it i have problem like this 
  <a href="http://prntscr.com/80iqfd" rel="nofollow">http://prntscr.com/80iqfd</a></p>
  
  <p>My code : </p>
  
  <pre><code>    Dim Process8() As Process = System.Diagnostics.Process.GetProcessesByName("RiPE")
      For Each MyKill As Process In Process8
          MyKill.Kill()
          Me.Hide()
          Logs()
      Next
      Dim Process9() As Process = System.Diagnostics.Process.GetProcessesByName("WPE PRO")
      For Each MyKill As Process In myProcess
          MyKill.Kill()
          Me.Hide()
          Logs()
      Next
  </code></pre>
  
  <p>anyone can help me to solve my program?
  sorry for my bad english</p>