When using the SDI interface in VB, you can have one form call another form, and this form call another. From the called form, you can close the calling one as long as it is not the startup form (you can do this even when the calling form is an MDI container if it was not set as parent of the called form, which is not done by default) . If you close the startup form your application will end.
However, you could call your second form, and then hide the first one:
Dim f As New Form2
f2.Show()
Me.Hide()
But, when doing something like this, if the second form is closed there will be no visible forms but the application will continue running, so this is something that needs to be considered.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 1  Reply