Gknrsy
asked on
Get application processID in Visual Studio 2008
I need to get processid from process name.
ex: runing blabla.exe , i want to get PID blabla.exe and write to textbox.
ex: runing blabla.exe , i want to get PID blabla.exe and write to textbox.
ASKER
i tried but not working
Did you get an error ?
ASKER
If Process.GetProcessesByName ("iexplore ").Length > 0 Then
Dim abc As System.Diagnostics.Process = System.Diagnostics.Process .GetProces sesByName( "iexplore" )[0].Id
MsgBox(abc.Id)
error: identifier expected
abc not declared
Dim abc As System.Diagnostics.Process
MsgBox(abc.Id)
error: identifier expected
abc not declared
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much :)
c#-code: System.Diagnostics.Process