Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Load & Unload Form
Name: CJ Date: September 30, 2002 at 17:51:23 Pacific OS: Win 2k CPU/Ram: 1.3G
Comment:
I usually use VB 6 but im being tasked with using VB.NET Can anyone tell me how with like my command button i can open another form on my project and close or make the current form invisible. And also like in VB6 i could make form10 be my first form to load when i run my project. How can i do this in VB.NET. Thank you in advance.
Summary: You need to be looking at an Array of Forms. You create a form with an index of 0 as design time. At runtime you can create more forms using the Load statement. Forms can be closed using Unload. F...
Summary: Or, try this: For Each Form in Forms Unload Form Next 'Forms' is an array containing all the open forms. the loop simply closes them all 1 by 1. very clever! Rich. ...
Summary: Put a Call to the following Sub in each form Load Event. It will unload every form except the MDI Form itself. Public Sub unload_forms() Dim i As Integer i = Forms.count - 1 If i > 1 Then Unload ...