title: Visual basic closing a program
body: <p>I have a really simple question, or at least I think it should be as simple as it can gets...
  I'm opening a jpg file by the simple statement:</p>
  <p><em>Process.Start(PlatiBild)</em></p>
  <p>Where the variable &quot;PlatiBild&quot; just indicates the path and filename.
  The default program by which this file is opened is &quot;Pictures&quot; from Microsoft itself.
  This works just fine.</p>
  <p>Now I want to close this file when a condition is met, but here is my problem.
  It just won't work.</p>
  <p>There is no such thing like:
  <em>Process.Close(PlatiBild)</em></p>
  <p>So I tried for example:
  <em>Process.GetProcessesByName(&quot;Pictures&quot;)(0).Kill()</em></p>
  <p>But still, the Pictures app just wont close.
  In my opinion it should be just one simple line of code, am I wrong?</p>
  <p>Thanks to everyone who at least takes a look at this!</p>