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

资源简介


代码片段和文件信息

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

using System.Net;
using System.Threading;

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

            backgroundWorker1.WorkerReportsProgress = true;
            backgroundWorker1.WorkerSupportsCancellation = true;
            buttonstop.Enabled = false;
        }

        private void buttonstart_Click(object sender EventArgs e)
        {
            richTextBox1.Text = “开始产生10000以内的随机数……\n\n“;
            buttonstart.Enabled = false;
            buttonstop.Enabled = true;
            //在后台开始操作

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

     文件       3785  2010-07-16 09:42  CHAP2Thread\BackgroundWorkerExample\BackgroundWorkerExample.csproj

     文件      10240  2009-03-20 22:10  CHAP2Thread\BackgroundWorkerExample\bin\Debug\BackgroundWorkerExample.exe

     文件      24064  2009-03-20 22:10  CHAP2Thread\BackgroundWorkerExample\bin\Debug\BackgroundWorkerExample.pdb

     文件      14328  2010-07-16 09:34  CHAP2Thread\BackgroundWorkerExample\bin\Debug\BackgroundWorkerExample.vshost.exe

     文件        490  2007-07-21 01:33  CHAP2Thread\BackgroundWorkerExample\bin\Debug\BackgroundWorkerExample.vshost.exe.manifest

     文件       2721  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample\Form1.cs

     文件       4840  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample\Form1.designer.cs

     文件       6019  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample\Form1.resx

     文件       2900  2010-08-10 10:43  CHAP2Thread\BackgroundWorkerExample\obj\Debug\BackgroundWorkerExample.csproj.FileListAbsolute.txt

     文件        847  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample\obj\Debug\BackgroundWorkerExample.csproj.GenerateResource.Cache

     文件      10752  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample\obj\Debug\BackgroundWorkerExample.exe

     文件        180  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample\obj\Debug\BackgroundWorkerExample.Form1.resources

     文件      26112  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample\obj\Debug\BackgroundWorkerExample.pdb

     文件        180  2010-07-16 09:42  CHAP2Thread\BackgroundWorkerExample\obj\Debug\BackgroundWorkerExample.Properties.Resources.resources

     文件        504  2009-03-20 22:09  CHAP2Thread\BackgroundWorkerExample\Program.cs

     文件       1386  2009-03-20 22:09  CHAP2Thread\BackgroundWorkerExample\Properties\AssemblyInfo.cs

     文件       2896  2009-03-20 22:09  CHAP2Thread\BackgroundWorkerExample\Properties\Resources.Designer.cs

     文件       5612  2009-03-20 22:09  CHAP2Thread\BackgroundWorkerExample\Properties\Resources.resx

     文件       1108  2009-03-20 22:09  CHAP2Thread\BackgroundWorkerExample\Properties\Settings.Designer.cs

     文件        249  2009-03-20 22:09  CHAP2Thread\BackgroundWorkerExample\Properties\Settings.settings

     文件      10752  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample.exe

     文件      26112  2010-07-16 09:47  CHAP2Thread\BackgroundWorkerExample.pdb

     文件      14328  2010-08-10 10:43  CHAP2Thread\BackgroundWorkerExample.vshost.exe

     文件        490  2007-07-21 01:33  CHAP2Thread\BackgroundWorkerExample.vshost.exe.manifest

     文件       3427  2010-08-10 15:26  CHAP2Thread\CHAP2Thread.sln

    ..A..H.     49664  2010-10-12 16:02  CHAP2Thread\CHAP2Thread.suo

     文件       6144  2010-10-12 15:51  CHAP2Thread\EventConsole\bin\Debug\EventConsole.exe

     文件      17920  2010-10-12 15:51  CHAP2Thread\EventConsole\bin\Debug\EventConsole.pdb

     文件      14328  2010-10-12 15:50  CHAP2Thread\EventConsole\bin\Debug\EventConsole.vshost.exe

     文件        490  2007-07-21 01:33  CHAP2Thread\EventConsole\bin\Debug\EventConsole.vshost.exe.manifest

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

评论

共有 条评论