列表视图的实时更新 [英] Live updating on listview

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

问题描述

我使用c#.net创建一个下载管理器,我有一个列表视图,显示下载的文件和下载文件的列表。我希望这个列表的文件列表根据下载进度进行更新。我有每个项目的进度条。如何使这可能? ?有人请帮助,我想在listview上进行实时更新..感谢提前:)

Im Creating a download manager using c#.net and i have a list-view which shows list of downloaded files and files downloading. i want this list list of files to be updated according to the download progress .and i have progress bar for each items .how to make that possible?? ? somebody please help ,i want live updation on listview .. THANKS IN ADVANCE :)

推荐答案

在Windows应用程序中,您可以实现处理OwnerDraw或DrawSubItem事件。如果您更改子项的任何值,它将触发DrawSubItem事件,并且在该事件上您可以绘制进度。





你可以参考以下文章了解更多详情;



http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.drawsubitem(v = vs.110)的.aspx [ ^ ]
In windows application you could achieve that handling OwnerDraw or DrawSubItem events. If you change any value of the subitem, it will fire the DrawSubItem event and on that event you could draw the progress.


You could refer to following article for more details;

http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.drawsubitem(v=vs.110).aspx[^]


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

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