答案 0 :(得分:0)
解决方案很简单。您可以使用以下方式访问启动画面:
Private ss As SplashScreen1 = My.Application.SplashScreen
但是,为了设置它的属性,因为它们位于不同的执行线程中,您将需要一个Delegate。此方法是如何设置名为CurrentMessage
的标签的示例:
Private Sub SetSplashScreenMsg(text As String)
If ss.InvokeRequired() Then
ss.Invoke(New Action(Of String)(AddressOf SetSplashScreenMsg), text)
Else
ss.CurrentMessage.Text = text
End If
End Sub