title: Getting process name with extension name(.exe per example)
body: <p>I'm making a program and I want to add all processes to a listbox, for this, I used the following code:</p>
  <pre><code>foreach(Process p in Process.GetProcesses())
  {
     listBox1.Items.Add(p.ProcessName);
  }
  </code></pre>
  <p>This adds the processes name like</p>
  <p><img src="https://i.stack.imgur.com/yKS8e.png" alt="Process List" /></p>
  <p>But instead, I would like to see the processes with their extensions for example:
  chrome.exe or iexplorer.exe as there are some programs that aren't .exe like <em>XTrap.xt</em></p>
  <p>Edit: I also tried</p>
  <pre><code>listBox1.Items.Add(p.ModuleMain.FileName);
  </code></pre>
  <p>But it throws a <code>Win32Exception: Access Denied</code></p>