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 August 9th, 2006, 07:53 AM
Authorized User
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to amit_mande@yahoo.com Send a message via AIM to amit_mande@yahoo.com Send a message via MSN to amit_mande@yahoo.com Send a message via Yahoo to amit_mande@yahoo.com
Default on the click of a button how to load another form?

I am doing a project in vb.net.I am new to vb.net.I dont know how to load a form and unload a form.I am Using main form as MDI form.
Please tell me how to do this.


 
Old August 15th, 2006, 01:13 AM
Registered User
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i assume that you know how to make your main form as parent form that can contain child form. just set your ISMDIContainer main form properties to true. :)

in the click button event type this code

Dim frmChild1 As New FormChild1
        frmChild1.MdiParent = Me
        frmChild1.Show()

that's it :)

 
Old September 12th, 2006, 06:53 AM
Authorized User
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to amit_mande@yahoo.com Send a message via AIM to amit_mande@yahoo.com Send a message via MSN to amit_mande@yahoo.com Send a message via Yahoo to amit_mande@yahoo.com
Default

Ya Its works.Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
Error On Load and On Click needelp Access VBA 3 November 3rd, 2006 08:34 AM
Button Click ~Bean~ ASP.NET 1.0 and 1.1 Basics 2 September 27th, 2005 09:32 AM
How to load 6 diff html pages with 1 mouse click bekim Javascript How-To 13 January 23rd, 2005 08:43 PM
creating reports thru a button click on a form clueless_may Access VBA 3 May 13th, 2004 09:34 PM





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