do not hide any form if it is of no use you better unload the form use the code
implement a module like this
Module App
<STAThread()> _
Public Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New Loginform()) 'implement login logic here
Application.Run(New Form2())
End Sub
End Module
set sub main as your startup object. your login form will automatically unload and form2 will appear after it