p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 1st, 2004, 01:46 AM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: , , .
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old December 1st, 2004, 04:38 AM
Authorized User
Points: 165, Level: 3
Points: 165, Level: 3 Points: 165, Level: 3 Points: 165, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Norfolk, , United Kingdom.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data-Driven-Load-Test VB.Net TGroener BOOK: Professional Software Testing with Visual Studio 2005 Team System ISBN: 978-0-470-14978-2 0 May 26th, 2008 06:53 AM
load and call a vb.net program in memory jpwollman Pro Visual Basic 2005 1 October 25th, 2007 03:42 PM
Load of Report failed --vb.net 2003, Crystal repor avats Crystal Reports 0 October 23rd, 2005 02: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 08:51 AM



All times are GMT -4. The time now is 04:07 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc