-1

I want to write to applications:

App A - a console application using C#

App B - windows form application using C#

How can I use App B to execute App A?

Thanks!

Daniel
  • 11
  • 1

1 Answers1

0

I guess you want to open the console app with a button on your winforms app. Place this code into the Button_Click method (or whatever your method is called):

Process.Start(programPath);

Replace programPath with the path to your .exe file of the console app. Also make sure that you place following using statement at the beginning of your code:

using System.Diagnostics;
baltermia
  • 1,151
  • 1
  • 11
  • 26