Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 October 2nd, 2007, 09:41 PM
Authorized User
 
Join Date: Jul 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to integrate one form from one project to requ

Mine is a mdi windows application.

i was already added that form in the required project in this way
  right click on project name->add->addexisting Item
          then i was selected that form from the location
       the form was added but i tried to use that form in my application in this way

private void menuItem7_Click(object sender, System.EventArgs e)
{
Form1 objfrm = new Form1();
}

but it gives error in this way
ERRors:-
            The type or namespace name 'Input' could not be found (are you missing a using directive or an assembly reference?)

 In addition to adding the form (Form1.cs, Form1.designer.cs , Form1.resx) i also added the exe file using add refernce... .
But still failed.

Thnks in advance.



 
Old October 3rd, 2007, 03:09 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I think the error pretty much says it all.

There is a variable in your imported Form1 that uses a type that is not declared. e.g.

Input i = new Input();

If you double click on the error it should take you to the line where the error is caused.

If you load up the form in the original project and then hover over the same line it should tell you what namespace Input is taken from (e.g. System.Security.Input or whatever). This might be a custom control or some other third party DLL.

Then you just need to add a reference to that DLL to your current project.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
integrate php module to asp.net 2.0 project?? jigu_2811 ASP.NET 1.0 and 1.1 Professional 2 August 8th, 2011 09:15 AM
Recovering data from modaldialog at same page requ skyler ASP.NET 2.0 Professional 0 December 15th, 2006 12:44 AM
How to integrate c# to Java haiying J2EE 2 November 24th, 2006 07:46 AM
How to integrate c# to Java haiying C# 1 November 20th, 2006 02:24 PM
Access 2000 VBA Ch 6 Reports form project Nelz BOOK: Beginning Access VBA 1 September 29th, 2003 09:51 AM





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