callraheel
Well-known member
Hello
In my application i need to display an introduction form like displayed in all applications..
Im using the following code to do that :
This code is from my main application form's load event
PrivateSub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
Me.Hide()
' Now display the introduction form for this application
Dim objDisplay AsNew frmDisplay
objDisplay.Show()
objDisplay.ResumeLayout()
Dim curThread As Thread = Thread.CurrentThread
curThread.Sleep(5000)
objDisplay.Dispose()
objDisplay = Nothing
Me.Show()
Status = "Ready"
EndSub
Everything is going fine except the display form is not displayed properly and its controls which contains two labels and one picture are vanished from form and after 5 seconds the main application is displayed..
So i need to know why its happening and how to display the introduction page properly.
See the attachment for further clarity
Regards
In my application i need to display an introduction form like displayed in all applications..
Im using the following code to do that :
This code is from my main application form's load event
PrivateSub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
Me.Hide()
' Now display the introduction form for this application
Dim objDisplay AsNew frmDisplay
objDisplay.Show()
objDisplay.ResumeLayout()
Dim curThread As Thread = Thread.CurrentThread
curThread.Sleep(5000)
objDisplay.Dispose()
objDisplay = Nothing
Me.Show()
Status = "Ready"
EndSub
Everything is going fine except the display form is not displayed properly and its controls which contains two labels and one picture are vanished from form and after 5 seconds the main application is displayed..
So i need to know why its happening and how to display the introduction page properly.
See the attachment for further clarity
Regards
Attachments
Last edited: