Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Diagnostics;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApplication1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- timer1.Start();
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- listView1.Items.Clear();
- Process[] processlist = Process.GetProcesses();
- foreach(Process process in processlist){
- if(process.MainWindowTitle.Length>0)
- listView1.Items.Add(process.ProcessName);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement