• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: 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.Threading;

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

        #region 单进度条

        
        private void button1_Click(object sender EventArgs e)
        {
            ThreadPool.QueueUserWorkItem(new WaitCallback(ThreadStartMethod));
        }

        /// 
        /// 用一个线程来启动
        /// 

        /// 
        public void ThreadStartMethod(object arg)
        {
            //初始化变量
            _index = 0; 
  

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

     文件       1368  2009-08-05 10:07  Properties\AssemblyInfo.cs

     文件       2878  2009-08-05 10:07  Properties\Resources.Designer.cs

     文件       5612  2009-08-05 10:07  Properties\Resources.resx

     文件       1099  2009-08-05 10:07  Properties\Settings.Designer.cs

     文件        249  2009-08-05 10:07  Properties\Settings.settings

     目录          0  2009-08-05 10:07  Properties

     文件       5208  2009-08-07 16:42  Form1.cs

     文件      12178  2009-08-07 16:43  Form1.Designer.cs

     文件       5814  2009-08-07 16:37  Form1.resx

     文件        495  2009-08-05 11:37  Program.cs

     文件       2789  2009-08-07 16:15  ThreadMulti.cs

     文件       3849  2009-08-05 11:19  ThreadMultiPro.csproj

     文件        244  2009-08-05 11:35  UI.cs

     文件      14848  2009-08-07 16:43  bin\Debug\ThreadMultiPro.exe

     文件      32256  2009-08-07 16:43  bin\Debug\ThreadMultiPro.pdb

     文件      14328  2009-08-07 16:45  bin\Debug\ThreadMultiPro.vshost.exe

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

     目录          0  2009-08-05 11:07  bin\Debug

     目录          0  2009-08-05 10:07  bin

     目录          0  2009-08-05 10:48  obj\Debug\Refactor

     目录          0  2009-08-05 10:07  obj\Debug\TempPE

     文件        965  2009-08-07 16:45  obj\Debug\ThreadMultiPro.csproj.FileListAbsolute.txt

     文件        847  2009-08-07 16:37  obj\Debug\ThreadMultiPro.csproj.GenerateResource.Cache

     文件      14848  2009-08-07 16:43  obj\Debug\ThreadMultiPro.exe

     文件        180  2009-08-07 16:37  obj\Debug\ThreadMultiPro.Form1.resources

     文件      32256  2009-08-07 16:43  obj\Debug\ThreadMultiPro.pdb

     文件        180  2009-08-05 11:19  obj\Debug\ThreadMultiPro.Properties.Resources.resources

     目录          0  2009-08-07 16:43  obj\Debug

     目录          0  2009-08-05 10:07  obj

----------- ---------  ---------- -----  ----

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

评论

共有 条评论