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 .
|