Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 14th, 2004, 11:23 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default referencing an mdi-frame from another project

Hi,

I just began learning c#, so I hope I am giving enough info with my question. I created a solution with two projects, in one I have an Mdi frame (with one namespace: boekhoud, and one class: frmContainer), in the other I have a child (with one namespace: ClientOnderhoud, and one class: frmClient). I set the parent-childrelation with

frmClient child = new frmClient();
child.MdiParent = this;
child.Show();

This compiles allright, so I can reference frmClient in my parent
Now I would like to reference frmContainer in my child, I do this with

((frmContainer)this.MdiParent.MyConnection).Open() ;

It gives me the following error:
The type or namespace name 'frmContainer' could not be found (are you missing a using directive or an assembly reference?)

What should I do to let this work?


regards,

Stefan.


Regards,

Stefan.
 
Old December 28th, 2004, 11:29 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

are your container and child in same namespace. If not then you
must add

using ParentNamespace;

greetings



www.ilumnis.com
the best ProjectTracking and SourceControl software

http://www.ilumnis.com/images/screen...cttracking.htm






Similar Threads
Thread Thread Starter Forum Replies Last Post
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
MDI Project (please help me) iranp2pcsharp C# 2005 2 June 12th, 2007 05:00 AM
Controlling MDI child form from MDI parent panel LuxCoder VB.NET 2002/2003 Basics 7 April 11th, 2007 02:38 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.