Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2004, 01:46 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load and Unload Forms In Vb.net

How to Load One Form And Unload Another Form In Vb.net
 Any help Please

 
Old December 1st, 2004, 04:38 AM
Authorized User
 
Join Date: Jun 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Not quite sure I fully understand you, but to load a form in VB.Net you need to declare an object like so

Dim frm as form1
frm.show

There is no unload in VB.net, to close a form try
frm.close (where frm is the name of your form)

for modal forms
dim frm as form1
frm.showdialog(me)
frm.close
frm.dispose

the reason for the dispose is that the form can still be hanging around after the close on a dialog form. This also may be the case for modaless forms but I have not found this to be so much of an issue.

Duncan





Similar Threads
Thread Thread Starter Forum Replies Last Post
load and call a vb.net program in memory jpwollman Pro Visual Basic 2005 1 October 25th, 2007 02:42 PM
Load of Report failed --vb.net 2003, Crystal repor avats Crystal Reports 0 October 23rd, 2005 01:19 PM
Getting VB.NET to load & update XML file kyma XML 0 March 19th, 2005 04:58 PM
unload form in vb.net Kbera VB.NET 2002/2003 Basics 0 September 13th, 2004 07:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.