• 大小: 0.05M
    文件类型: .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 WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        public delegate void delSum(string text);
        public delSum delsum;
        public delegate void delMult(string text);
        public delMult delmult;
        public volatile bool Ems = false;


        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            delsum = new delSum(UpdateSum);
            Thread Tsum = new Thread(new ThreadStart(Sum));
            Tsum.

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

     文件      43520  2018-06-20 14:04  开多线程加委托刷界面\.vs\WindowsFormsApplication4\v14\.suo

     文件      10752  2018-06-15 23:43  开多线程加委托刷界面\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.exe

     文件      22016  2018-06-15 23:43  开多线程加委托刷界面\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.pdb

     文件      22472  2018-08-24 09:55  开多线程加委托刷界面\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.vshost.exe

     文件        490  2017-09-29 21:43  开多线程加委托刷界面\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.vshost.exe.manifest

     文件       2382  2018-06-15 23:43  开多线程加委托刷界面\WindowsFormsApplication4\Form1.cs

     文件       4262  2018-06-15 23:43  开多线程加委托刷界面\WindowsFormsApplication4\Form1.Designer.cs

     文件       5817  2018-05-21 20:20  开多线程加委托刷界面\WindowsFormsApplication4\Form1.resx

     文件        863  2018-08-24 09:56  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6869  2018-08-24 09:55  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       3954  2018-08-24 09:55  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.csproj.FileListAbsolute.txt

     文件       1012  2018-06-15 23:43  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.csproj.GenerateResource.Cache

     文件       2210  2018-03-21 15:27  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.csprojResolveAssemblyReference.cache

     文件      10752  2018-06-15 23:43  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.exe

     文件        180  2018-05-21 20:20  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.Form1.resources

     文件      22016  2018-06-15 23:43  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.pdb

     文件        180  2018-03-21 15:27  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.Properties.Resources.resources

     文件        505  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4\Program.cs

     文件       1374  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4\Properties\AssemblyInfo.cs

     文件       2861  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4\Properties\Resources.Designer.cs

     文件       5612  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4\Properties\Resources.resx

     文件       1111  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4\Properties\Settings.Designer.cs

     文件        249  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4\Properties\Settings.settings

     文件       3762  2018-03-21 15:10  开多线程加委托刷界面\WindowsFormsApplication4\WindowsFormsApplication4.csproj

     文件       1039  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4.sln

     目录          0  2018-03-21 15:06  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug\TempPE

     目录          0  2011-01-03 10:23  开多线程加委托刷界面\.vs\WindowsFormsApplication4\v14

     目录          0  2011-01-03 10:23  开多线程加委托刷界面\WindowsFormsApplication4\bin\Debug

     目录          0  2018-08-24 09:56  开多线程加委托刷界面\WindowsFormsApplication4\obj\Debug

     目录          0  2011-01-03 10:23  开多线程加委托刷界面\.vs\WindowsFormsApplication4

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

评论

共有 条评论