Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 November 17th, 2003, 03:39 PM
Registered User
 
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default MDI Forms

I have a mdi parent form with 2 forms inside it. When it loads I have one main form showing and want to show another form by clicking a button. I also do not want to create more than one instance of the form. Here is my code.
 grid.MdiParent = frmMain.ActiveForm
        grid.Show()
        If grid.Visible = True Then
            grid.BringToFront()
        End If
That works fine until I close my grid form and try to reopen it. I get an error saying that it cannot access a disposed object name. Any help would be appreciated.
Thanks
Tim

 
Old November 17th, 2003, 03:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

make sure on close your hiding the form- not getting rid of it all together.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
MDI & MDI Child Forms Menu's in VB2005 yulyos Visual Studio 2005 0 September 7th, 2007 09:49 AM
MDI Forms Gustav_Haglund VB How-To 8 December 8th, 2005 07:05 PM
MDI Forms kobystud C# 0 June 7th, 2004 04:14 AM
Mdi Forms tim33_909 Pro VB.NET 2002/2003 1 November 27th, 2003 11:40 PM
MDI Forms? aldwincusi VB How-To 1 September 11th, 2003 04:46 PM





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