下载时如何逐个显示所有URL [英] how to display all URL one by one while downloading

查看:59
本文介绍了下载时如何逐个显示所有URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜。我正在创建一个win表单,我正在创建一个下载管理器..

i想要用户下载文件时它应该显示当前正在下载的所有URL ..

i want用户可以看到当前正在下载的URL ..请帮助我解决此问题

hi. i am creating a win form in which i am creating a download manager..
i want when user download file it should display all the URL which are currently downloading..
i want tha user can see the URL which are currently downloading..please help me in this

推荐答案

LIek已经知道了。你没有足够的技能来解决这个问题。



查看你的代码片段后,将URL放入文本框中是最简单的事情。这个世界要做。问题是你在UI线程上下载文件,阻止文本框自行绘制。



你完全重新设计这个应用程序从头开始使用后台线程做的工作和UI线程,以及维护用户界面,包括您正在下载的URL的屏幕列表。



你现在有这个应用程序写的方式,它注定要失败。
LIek has alreayd been siad. You don''t have the skillset to pull this one off yet.

After look at your code snippet, putt the URL in a textbox would be the easiest thing in the world to do. The problem is that your downloading files on the UI thread, preventing the textbox from drawing itself.

You ened to completely redesign this app from the ground up to use background threads to do the work and the UI thread to, well, maintain the UI, including your on-screen list of URL''s you''re downloading.

The way you have this app written now, it is doomed to failure.


这篇关于下载时如何逐个显示所有URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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