System.Diagnostics.Process.GetCurrentProcess().Id;
System.Diagnostics.Process.GetProcessesByName("MyP rocess")[0].Id;
In other words, check out "System.Diagnostics.Process" object.
--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"CLEAR-RCIC" <CL*******@discussions.microsoft.com> wrote in message news:5B**********************************@microsof t.com...
Does anyone know how to programmatically get the Process ID of a running
application in .Net? If so, could you share some code or point me to a
resource? Thanks!