Wrox Programmer Forums
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 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 8th, 2003, 12:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default MDI problems

Hello,

I'm using an MDI form, with a user control on the left and right side of the screen. Whenever I load a new form into the MDI, I use:

'This code is in the user control
dim o as new Form1
o.MDIParent = me.ParentForm()
o.Show()
'Sometimes this is called for some of the forms
o.LoadData()

It runs the code in the load data function, but doesn't show the form. When I minimize and maximize the form, then the MDI child form shows. Also, I cannot click the "X" in the upper-right of the screen to close the form. For this form, I don't have a finalize function, I don't have a closing event to stop it from closing.

Any ideas?

Thanks,

Brian Mains
__________________
Brian
 
Old August 17th, 2003, 05:21 PM
Authorized User
 
Join Date: Jul 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With the child form loaded in the design mode, look thru the property sheet and see if there is a property that tells the child who it's parent is, and also look at the properties for the main parent form and see if there is anything related to this as well - i remember a while back having the same propblem but i forgot exactly how I fixed it.

Tek





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with MDI Forms danielkelly C# 4 December 22nd, 2008 11:39 PM
Displaying MDI Child Form Menus with MDI Parent ashu_from_india Pro VB 6 3 June 10th, 2008 11:01 PM
MDI & MDI Child Forms Menu's in VB2005 yulyos Visual Studio 2005 0 September 7th, 2007 09:49 AM
Controlling MDI child form from MDI parent panel LuxCoder VB How-To 1 April 9th, 2007 03:25 PM
Controlling MDI child form from MDI parent panel LuxCoder Visual Basic 2005 Basics 2 April 9th, 2007 03:24 PM





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