so I'm making a simple program in vb.net 2005 I have the main form setup as the startup form and a few other forms. basically I want to load one of two forms below before the main form loads. I have set up some simple code in the ApplicationsEvents.vb MyApplication_Startup to figure out which form to load
my question is how do I get the main form to hide. as it is right now it works but the main form loads as well. so basically I get for example form1 and the main form to show when I only want form1 to show. how do I hide the main page when the application loads?
any help would be much appreciated thanks.
VB.NET:
Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
if //simple if statement
show form1
Else
show form2
End If
End Sub
any help would be much appreciated thanks.