嗨...如何使用按钮取消此操作? [英] Hi...how do I cancel this using a button?

查看:77
本文介绍了嗨...如何使用按钮取消此操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,



i我正在使用此代码从我的网站下载...但我想介绍一个取消按钮......好吧......我不知道怎么做!??



Hey guys,

i am using this code to download from my website...but i would like to introduce a Cancel button...well...i do not know how to do that!??

<pre>
        download = New WebClient
        download.DownloadFileAsync(New Uri("http://www.beatassist.eu/demos/BitMeex.zip"), FolderBrowserDialog1.SelectedPath & "\BitMeex.zip")







谢谢!



我的尝试:



是的!我尝试谷歌搜索但我没有找到答案!!!




Thank you!

What I have tried:

Yes! i tried googling but i did not found an answer!!!

推荐答案

你的谷歌需要一些工作。一个非常简单的搜索webclient downloadfileasync cancel给出了43,000次点击: webclient downloadfileasync cancel - Google Search [ ^ ]顶部链接全部自己解释该怎么做:

c# - 中止WebClient.DownloadFileAsync操作 - 堆栈溢出 [ ^ ]
Your google-fu needs some work. A very simple search "webclient downloadfileasync cancel" gave 43,000 hits: webclient downloadfileasync cancel - Google Search[^] And teh top link all on it's own explains what to do:
c# - Aborting a WebClient.DownloadFileAsync operation - Stack Overflow[^]


这篇关于嗨...如何使用按钮取消此操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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