Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Process kill using System.Diagnostics
PostPosted: Wed Jul 08, 2015 3:16 am 

Joined: Wed Jul 08, 2015 3:09 am
Posts: 1

Offline
Hello,
I hope anyone can help with the following problem. First the code:

Code:
    using System.Windows.Forms;
    using System;
   using System.Diagnostics;
    using System.Drawing;
    using Neo.ApplicationFramework.Tools;
    using Neo.ApplicationFramework.Common.Graphics.Logic;
    using Neo.ApplicationFramework.Controls;
    using Neo.ApplicationFramework.Interfaces;
   
   
    public partial class HTML_InfeedNip
    {   
      void HTML_InfeedNip_Closing(System.Object sender, System.ComponentModel.CancelEventArgs e)
      {
         string processName = "explorer";
         foreach (Process process in Process.GetProcessesByName(processName))
         process.Kill();
      }
    }


And the compiler error code is:

system.diagnostics.process' does not contain a definition for 'getprocessesbyname'

Thx in advance.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: