I am very new to C# windows programming. Basically, I have the code below
If I remove the console code because I don't want to dispaly that console at all (3 lines of code above), my program just calls the stop right away, if however, I don't remove those lines, my program doesn't call stop.Code:Watcher.Start(); Console.WriteLine(procName + " is under watch..."); Console.WriteLine("Press Enter to stop watching..."); Console.ReadLine(); Watcher.Stop();




Reply With Quote