我在vb.net编写的Windows窗体应用程序。我有叫闪屏的形式,在项目属性中设置闪屏。启动窗体设置登录表单。我有一个用户运行我的应用程序时,有一个例外。它发生后飞溅屏幕上显示之前登录屏幕显示。用户再次尝试,并没有再次得到错误的。但是,如果任何人有任何想法可能会造成这一点,这样我就可以确保它固定的,我会很感激。
谷歌搜索此错误时,它似乎,它可能会涉及到线程,但我没有做什么特别的东西,我的登录屏幕上,接受使用1 Me.Activate()。我有麻烦登录屏幕上不要有重点启动画面消失后,发现说Me.Activate()一些论坛将修复它,和它。
以下是错误信息:
Private Sub Logon_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'This statement will fix the issue users occasionaly have with the logon form not having focus after the splash screen goes away
Me.Activate()
'Other loading tasks...
End Sub
{C}没有任何人有任何想法,会造成什么呢?| Kschuler |基督教Graus