解除Windows GUI(C#)
本示例说明了如果Windows GUI被较长的进程阻止,如何对用户事件做出反应。
// You need the Threading library to use the
// "Thread.Sleep" function
// using System.Threading;
// This boolean value can be used to stop the
// process below
bool UserHitCancel = false;
this.progressBar.Maximum = 100;
// Loop 100 times
for (int i = 0; (i < 100 && !UserHitCancel); i++)
{
// Update a progressbar or any other control
this.progressBar.Value = i;
// This function checks if the user fired any
// events, like clicks on a cancel button and
// allowes the application to react
Application.DoEvents();
// This tells the current thread to sleep for 50 milliseconds,
// so that the user can see the progress bar filling up
Thread.Sleep(TimeSpan.FromMilliseconds(50));
}
资源介绍 纯css3绘制卡通复古的汽车,3D汽车图形,精美的汽车ui特效。 演示截图 相关推荐: 响应式图片文字横幅布局代码代码介绍 jQuery css3制作遮罩的图片文字横幅布局,创意的大图和文字标题响应式布局代码。 演示截图 相关推荐: jQuery解决…
关注微信公众号『OOINK』
第一时间了解最新资源动态关注OO.INK不迷路~
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 下载资源需要解压密码,解压密码是什么?
1、本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2、分享目的仅供大家学习和交流,请不要用于商业用途!
3、本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
4、如有链接无法下载、失效或广告,请联系管理员处理!
5、本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
OO.INK资源网 » 解除Windows GUI(C#)
2、分享目的仅供大家学习和交流,请不要用于商业用途!
3、本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
4、如有链接无法下载、失效或广告,请联系管理员处理!
5、本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
OO.INK资源网 » 解除Windows GUI(C#)