Sending image from one project to another ?
-
:( Hi ! i have two project in one solution i want to send image from one project to another , i attached my project in rar format please download it and run with the src folder . Detail: one project is mine its simple one only have one form withing it only one picturebox and one button , other peject is paint.net , free product of image editing ,now i want to send my image to paint.net editor its using workspace class etc, i m stuck how to send image in it for editing and then again send back to my project : //its a button that is place in form1 its in myproject , and i m calling paint.net in mysoftware thorugh this code i get success but wanna send image that is in picturebox to paint.net but not getting any thing plz help me . private void button2_Click(object sender, EventArgs e) { PaintDotNet.MainForm mF; mF = new PaintDotNet.MainForm(); //PaintDotNet.PdnResources.GetImageResource(@"C:\Sunset.jpg"); //PaintDotNet.PdnResources.LoadImage(@"C:\Sunset.jpg"); // string[] fileNames ; ////string startingDir = Path.GetDirectoryName(documentWorkspace.FilePath); // string startingDir = @"C:\Temp"; //public documentWorkspace; //DialogResult result =PaintDotNet.DocumentWorkspace.ChooseFiles( PaintDotNet.DocumentWorkspace. , out fileNames, true, startingDir); //PaintDotNet.DocumentWorkspace.ChooseFile( //PaintDotNet.Actions.ImportFromFileAction(@"C:\Sunset.jpg"); // ImportFromFileAction(@"c:\sunset.jpg"); //PaintDotNet.Actions.OpenFileAction(pictureBox1.Image); //PaintDotNet.Actions.NewImageAction(); // mF.AppWorkspace.PerformAction(new OpenFileAction()); // PaintDotNet.AppWorkspaceAction(new Image("C:\sunset.jpg")); //PaintDotNet.AppWorkspaceAction(new OpenFileDialog()); mF.Show(); } :(
-
:( Hi ! i have two project in one solution i want to send image from one project to another , i attached my project in rar format please download it and run with the src folder . Detail: one project is mine its simple one only have one form withing it only one picturebox and one button , other peject is paint.net , free product of image editing ,now i want to send my image to paint.net editor its using workspace class etc, i m stuck how to send image in it for editing and then again send back to my project : //its a button that is place in form1 its in myproject , and i m calling paint.net in mysoftware thorugh this code i get success but wanna send image that is in picturebox to paint.net but not getting any thing plz help me . private void button2_Click(object sender, EventArgs e) { PaintDotNet.MainForm mF; mF = new PaintDotNet.MainForm(); //PaintDotNet.PdnResources.GetImageResource(@"C:\Sunset.jpg"); //PaintDotNet.PdnResources.LoadImage(@"C:\Sunset.jpg"); // string[] fileNames ; ////string startingDir = Path.GetDirectoryName(documentWorkspace.FilePath); // string startingDir = @"C:\Temp"; //public documentWorkspace; //DialogResult result =PaintDotNet.DocumentWorkspace.ChooseFiles( PaintDotNet.DocumentWorkspace. , out fileNames, true, startingDir); //PaintDotNet.DocumentWorkspace.ChooseFile( //PaintDotNet.Actions.ImportFromFileAction(@"C:\Sunset.jpg"); // ImportFromFileAction(@"c:\sunset.jpg"); //PaintDotNet.Actions.OpenFileAction(pictureBox1.Image); //PaintDotNet.Actions.NewImageAction(); // mF.AppWorkspace.PerformAction(new OpenFileAction()); // PaintDotNet.AppWorkspaceAction(new Image("C:\sunset.jpg")); //PaintDotNet.AppWorkspaceAction(new OpenFileDialog()); mF.Show(); } :(
-
i tried but i m still unable to do this can u give me the code becouse i m not running the exe from my project i m running the applicaton calling one project to another i m confused , can u give me ur email address i ll send u the hole project in rar format can u do this and send me back plzzzzz my id is nomanforu@gmail.com please help me i m facing this problem since 3 days becouse i m new in c# and i have no support from any where plzzzzzzzzzzzzz
-
i tried but i m still unable to do this can u give me the code becouse i m not running the exe from my project i m running the applicaton calling one project to another i m confused , can u give me ur email address i ll send u the hole project in rar format can u do this and send me back plzzzzz my id is nomanforu@gmail.com please help me i m facing this problem since 3 days becouse i m new in c# and i have no support from any where plzzzzzzzzzzzzz
Please don't be desperate. Take your time, and study the documentation for System.Diagnostics.Process. If you see 10 posts below, someone has posted code using this method to start WinRar. It is more gratifying when you find the answer yourself than when someone else does it for you. The key to knowledge is not to rely on people to teach you it.