WinForm C#多线程等待窗体

上传者: lovercoca | 上传时间: 2021-06-18 15:34:17 | 文件大小: 47KB | 文件类型: RAR
由于用到了非托管资源,最简单的方式是把托管资源(WaitForm)放在工作线程,线程结束,窗体会自动销毁,不用自己写清理代码。 ShowDialog自动阻塞当前线程,这使它成为最优的解决方式。

文件下载

资源详情

[{"title":"( 33 个子文件 47KB ) WinForm C#多线程等待窗体","children":[{"title":"WaitForm","children":[{"title":"WaitForm.sln <span style='color:#111;'> 866B </span>","children":null,"spread":false},{"title":"WaitForm.suo <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false},{"title":"WaitForm","children":[{"title":"Resources","children":[{"title":"Progressbar.gif <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"Form1.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"WaitForm.suo <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 6.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"WaitForm.csproj <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"WaitForm.resx <span style='color:#111;'> 5.87KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"WaitForm.Designer.cs <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"WaitForm.csproj.FileListAbsolute.txt <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"x86","children":[{"title":"Debug","children":[{"title":"WaitForm.exe <span style='color:#111;'> 13.00KB </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.read.1.tlog <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"Sun.ToolKit.Properties.Resources.resources <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"Sun.ToolKit.WaitForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"WaitForm.csproj.FileListAbsolute.txt <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"Sun.ToolKit.frmMain.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.read.4.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"WaitForm.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.write.1.tlog <span style='color:#111;'> 870B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"WaitForm.exe <span style='color:#111;'> 13.00KB </span>","children":null,"spread":false},{"title":"Progressbar.gif <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"WaitForm.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"WaitForm.vshost.exe <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"WaitForm.cs <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • cuiweibin5 :
    借鉴中,有一些小bug
    2018-09-10
  • sunypoplar :
    不错,提供了我的思四路
    2016-07-14
  • kuailewujixi_an :
    借鉴中,有一些小bug
    2015-10-28
  • mahaijun125527 :
    很不错的学习资料
    2015-07-21
  • nightkidfifa :
    huichang 感谢感谢
    2015-04-07

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明