title: What program or process is using a specific serial port in C#
body: <p>When I'm trying to use a com port in my C# program sometimes the port is open and is used by another program. I want to be specific and generate warning message like this :</p>
  
  <p>"<code>COM1</code> port is used by other program named <code>SomeApplication</code>. Do you want to close that program (Note that you may lose data or other consequences)?" <code>-Yes</code> <code>-No</code></p>
  
  <p>How to implement this scenario in C#?</p>