• 大小: 0.09M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签:

资源简介

下載進度條

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Net;

namespace DownloadProgressBar
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void backgroundWorker1_DoWork(object sender DoWorkEventArgs e)
{
            //判断是否取消操作 
            if (backgroundWorker1.CancellationPending)
            {
                e.Cancel = true;
                return;
            } 
            
            // the URL to download the file from
string sUrlToReadFileFrom = textBoxSourceFile.Text;
// the path to write the file to
int iLastIndex = sUrlToRead

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2015-07-25 21:00  DownloadProgressBar\DownloadProgressBar\App.config

     文件      13312  2015-07-26 15:01  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar.exe

     文件        187  2015-07-25 21:00  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar.exe.config

     文件      28160  2015-07-26 15:01  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar.pdb

     文件      22984  2015-07-26 15:01  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar.vshost.exe

     文件        187  2015-07-25 21:00  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar.vshost.exe.config

     文件        490  2009-08-31 00:40  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar.vshost.exe.manifest

     文件      11776  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar1.exe

     文件      22016  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar1.pdb

     文件      21464  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar1.vshost.exe

     文件        490  2009-08-31 00:40  DownloadProgressBar\DownloadProgressBar\bin\Debug\DownloadProgressBar1.vshost.exe.manifest

     文件       3817  2015-07-25 21:35  DownloadProgressBar\DownloadProgressBar\DownloadProgressBar.csproj

     文件       4921  2015-07-26 15:01  DownloadProgressBar\DownloadProgressBar\Form1.cs

     文件       7180  2015-07-26 14:26  DownloadProgressBar\DownloadProgressBar\Form1.Designer.cs

     文件       6019  2015-07-26 14:26  DownloadProgressBar\DownloadProgressBar\Form1.resx

     文件       1500  2015-07-25 21:02  DownloadProgressBar\DownloadProgressBar\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6991  2015-07-26 12:52  DownloadProgressBar\DownloadProgressBar\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2109  2015-07-26 15:01  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar.csproj.FileListAbsolute.txt

     文件        975  2015-07-26 14:26  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar.csproj.GenerateResource.Cache

     文件       2143  2015-07-26 13:51  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar.csprojResolveAssemblyReference.cache

     文件      13312  2015-07-26 15:01  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar.exe

     文件        180  2015-07-26 14:26  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar.Form1.resources

     文件      28160  2015-07-26 15:01  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar.pdb

     文件        180  2015-07-26 13:08  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar.Properties.Resources.resources

     文件        694  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar1.csproj.FileListAbsolute.txt

     文件        847  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar1.csproj.GenerateResource.Cache

     文件      11776  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar1.exe

     文件      22016  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar1.pdb

     文件        180  2015-07-25 20:58  DownloadProgressBar\DownloadProgressBar\obj\Debug\DownloadProgressBar1.Properties.Resources.resources

     文件          0  2015-07-25 21:00  DownloadProgressBar\DownloadProgressBar\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

............此处省略23个文件信息

评论

共有 条评论