Question: This is a C# program im trying to display background processes on a form. I was able to figure out how to just get them

This is a C# program im trying to display background processes on a form. I was able to figure out how to just get them to display in the output console. But im stuck on getting them to work on a form.

This is a C# program im trying to display background processes ona form. I was able to figure out how to just getthem to display in the output console. But im stuck on getting

eventwatcher2.Form1 Form1_Load(object sender, EventArgs e) + Search Solution Explorer (Ctrl+:) Solution 'eventwatcher2' (1 of 1 project C# eventwatcher2 Properties - References App.config 3 Form1.cs C# Program.cs nostic Tools Properties C# eventwatcher2 1 Pusing System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Diagnostics; 6 using System.Drawing; 7 using System.Linq; 8 using System.Text; 9 using System.Threading.Tasks; 10 using System.Windows.Forms; 11 12 namespace eventwatcher2 13 { 2 references 14 public partial class Form1 : Form 15 { O references 16 public Form1() 17 18 InitializeComponent(); 19 } 20 O references 21 static void Main(string[] args) Process[] processList = Process.GetProcesses(); 26 27 28 foreach (Process process in processList) { Console.WriteLine(@" {0} | ID: {1} | status {2} | Memory (private working set in Bytes) {3}", process.ProcessName, process. Id, process. Responding, process.PrivateMemorySize64); } 30 31 32 33 34 35 36 104 % No issues found Ln: 38 Ch: 60 SPC CRLF Output 4 x Show output from: Debug svchost | ID: 6284 | status True | Memory (private working set in Bytes) 1126400 deveny | ID: 17692 | status True Memory (private working set in Bytes) 508494336 conhost | ID: 7144 | status True | Memory (private working set in Bytes) 6668288 taskhostw | ID: 9312 | status True Memory (private working set in Bytes) 8929280 Error List Output Form1.cs* - X Form1.cs (Design)* Program.cs Solution Explorer Form 1.Designer.cs* C# eventwatcher2 IX eventwatcher2.Form1 Form1_Load(object sender, EventArgs e) Toolbox Data Sources 35 36 37 Diagnostic Tools Properties 38 39 O Search Solution Explorer (Ctrl+;) Solution 'eventwatcher2' (1 of 1 project C# eventwatcher2 Properties -- References App.config > 2 Form1.cs C# Program.cs 1 reference private void Form1_Load(object sender, EventArgs e) 40 41 } 42 43 44 104 % No issues found In: 38 Ch: 60 SPC CRLF - Output Show output from: Debug svchost | ID: 6204 | status True | Memory (private working set in Bytes) 1126400 devenv | ID: 17692 | status True Memory (private working set in Bytes) 500494336 conhost | ID: 7144 | status True Memory (private working set in Bytes) 6668288 taskhostw | ID: 9312 | status True Memory (private working set in Bytes) 8929280 Error List Output O Ready Add to Source Control Form1.Designer.cs* X Form1.cs* Form1.cs (Design)" + X Program.cs Form1 x listBox1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!