SplashScreen窗体加载源码源码描述:每次应用程序加载的时候,都会出现一个加载界面。一个好的加载界面需要:在一个单独的线程上运行,淡入,淡出消失,显示运行状态更新消息,使用静态方法显示和更新预测self-calibrating机制smooth-gradient进度条显示剩余的加载完成之前的秒数更新信息20140521:Fixedcrossthreadingoversight(lblTimeRemaininglabelwasbeingsetdirectly.)Alternativestoragetoavoidthewindowsregistry(ColinStansfield,Lagrange)Delayupdatesuntilthesplashscreenthreadisstarted(daws)timer.Stop()beforeclosingtheform(kilroytrout)Drawtheprogressbarduringthetimertickevent(kilroytrout,cbschuld)Remainingtimeaccuracyimprovements(P
利用的技术有:Threading、timer类,xml,以及业务流程。可以根据项目需求进行改写。
实现方法:用System.Threading.Timer加上一个简单的委托异步修改面板大小来实现动画鼠标悬停时图标变成绿色是判断鼠标划过哪个标签是通过对MouseMove鼠标移动实时采点来实现的注意:开发环境为