实时更新系统进程的列表视图 [英] Real-time update a listview of system processes

查看:54
本文介绍了实时更新系统进程的列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VB.NET获取系统进程列表后,如何实时更新进程列表?

请举个例子.

谢谢你!

After using VB.NET to obtain a list of system processes, how to update the list of processes in real time?

Please give me an example.

Thank u!

推荐答案

在常规帮助中很难搜索吗?

…但是,如果可以,请您节省几分钟:
使用System.Diagnostics.Process.GetProcesses();查看类System.Diagnostics.Process以获得更多类似的方法GetProcessByIdGetProcesses(String)GetProcessesByName.

请轻松地自己构建示例(请理解:如果查询者要求,此站点并非旨在编写代码;我们正在提供帮助,而不是其他人的工作).不要使用在阅读时间内"一词.实时是一个非常不同的概念,在Windows的标准版本中不可用.

您可以创建并运行其他线程(我不建议您使用任何类型的计时器)并定期进行处理,并使用Control.Invoke通知您UI列表控件.
如果您遇到问题,欢迎您提出另一个问题.

—SA
What, is that so hard to search in your regular help?

…However, all right, if I can save you few minutes:
Use System.Diagnostics.Process.GetProcesses(); look at the class System.Diagnostics.Process for more similar methods GetProcessById, GetProcesses(String), GetProcessesByName.

Please build the example by yourself, its easy (please understand: this site is not designed to write code if an Inquirer is demanding it; we''re helping, not doing some other person''s work). Don''t use the term "in read time". Real time is a very different concept, not available in standard versions of Windows.

You can create and run additional thread (I do no recommend using any kind of timer) and get processed periodically, notify you UI list control using Control.Invoke.
If you face problems, your another question is very welcome.

—SA


这篇关于实时更新系统进程的列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆