如何减少项目中的splash的时间限制 [英] How to reduse time limit of splash from in a project

查看:84
本文介绍了如何减少项目中的splash的时间限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在vb.net中减少项目中的splash的时间限制

How to reduse time limit of splash from in a project in vb.net

推荐答案

我的一个项目中的代码将设置最小显示时间对于启动画面。这是因为它对我来说太快了。我在应用程序事件中添加了此代码:

I have code in one of my projects that will set a minimum display time for the splash screen. This is because it was going away too quickly for me. I added this code in the Application Events:
Protected Overrides Function OnInitialize(commandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)) As Boolean
   Me.MinimumSplashScreenDisplayTime = 4000 'Min of 4 seconds
   Return MyBase.OnInitialize(commandLineArgs)
End Function





如果你想让你的闪屏更快走开......我不知道你是怎么想的我做到了。你必须有一些需要一段时间的装载。您是否在MyApplication_Startup事件中花费了大量时间?或者在您显示的第一个表单的加载事件中?您可以考虑对这些进行一些更改。也许加入多线程?



希望这会有所帮助。



If you want your splash screen to go away even quicker...I''m not sure how you would do it. You must have something loading that is taking a while. Are you doing anything time consuming in the MyApplication_Startup event? Or in the Load Event of the first form you display? You could look into making some changes to those. Perhaps incorporating multi-threading?

Hope this helps.


这篇关于如何减少项目中的splash的时间限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆