Board index » Visual Studio » ## Startup Forms and Splash screen Problem - Please help me!! ##
|
DannyophetVeld
|
## Startup Forms and Splash screen Problem - Please help me!! ##
Visual Studio16
This is my problem :- - I have set a form frmSplash as the startup form instead of sub Main. - This means I dont create an instance of it myself at startup.. its automatically created. - I have a timer on frmSplash set to 3000 ms interval - and here is its tick event : Private Sub tmrStartup_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrStartup.Tick Dim frmParent As New frmParent frmParent.Show() Me.Close() End Sub Now what I thought was that after the first tick at 3sec it would create an instance to frmParent and show that then close itself(frmSplash)... but sadly what happens it that the "me.close" closes the whole app. Ive tried me.close before the "Dim frmParent As New frmParent" but same result.. the application closes and frmParent is closed. What I want to happen is frmSplash should close and show frmParent. Thanks for Looking. - |
