Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.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 May 29th, 2008, 07:06 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nomanforu Send a message via Yahoo to nomanforu
Default Call one Project to Anothe in C#.

i m using C# in visual studio 2005, i added 2 projects in one solution , i want to call one project mdi form to other project form .means wanna access other project how its possible , project one name "paintdotnet" 2nd name "windowsapplication1" in windowsapplication1 having Form1 and its have a button on its click event just wanna call first project paintdotnet form "mdiform".

Basically i want to add porject is Paint.net its free software v3.22 in c# i wannt to add this in my project

when i m doing this there are two errors Code and error are belows:

Error 1 The type 'PaintDotNet.PdnBaseForm' is defined in an assembly that is not referenced. You must add a reference to assembly 'PaintDotNet.Core, Version=3.22.2933.24442, Culture=neutral, PublicKeyToken=null'. D:\Check\WindowsApplication1\WindowsApplication1\F orm1.cs 30 13 WindowsApplication1



Error 2 'PaintDotNet.MainForm' does not contain a definition for 'Show' D:\Check\WindowsApplication1\WindowsApplication1\F orm1.cs 31 15 WindowsApplication1


Code :

//paintdotnet is the first project and windowsapplication is the 2nd ,i m calling paintdotnet "MainForm" through windowsapplication form1. plz help me errors is attached in txt file .

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
//using paintdotnet;
//namespace system.Diagnostics.Process





namespace WindowsApplication1
{


    public partial class Form1 : Form
    {
        public Form1()
        {
                        InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {


            PaintDotNet.MainForm f = new PaintDotNet.MainForm();
            f.Show();




        }
    }
}



Best OF Luck .
 
Old May 29th, 2008, 11:53 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Have you resolved the first exception you describe? You are missing a reference to the necessary assembly.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Website project vs Web Application Project... thenoseknows ASP.NET 2.0 Professional 0 January 14th, 2007 09:47 PM
How do i Call one project to another project kau_shuk VS.NET 2002/2003 8 December 5th, 2006 10:02 AM
UserControl of One Project in Other Project gadhiav ASP.NET 1.0 and 1.1 Professional 2 February 18th, 2006 07:51 AM
Add report of one project into another project tejaswibv Crystal Reports 0 July 13th, 2005 04:40 AM
Values of one form needed for validation on anothe nazneen JSP Basics 0 June 19th, 2003 03:18 AM





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