Superzarzar
Superzarzar

Reputation: 539

How to connect console application and Windows form application C#

I put all of my input on my console application, and I like it this way. My question is, how can I fix example read input in the console application, and then do something with it in the windows form app? I want both of my applications running at the same time. Console application will be doing something while Win App is doing something else, but if I will want to, I can connect them.

I have tried :

Form1 win = new Form1();
win.show();

but it didn't work. The window switch I see is stacked, and it is not able to run as it should.

Upvotes: 1

Views: 4524

Answers (1)

I4V
I4V

Reputation: 35363

1- Create a winforms application

2- Set output type as a Console Applcation by Project/Properties/Application/Output Type

Now You have a windows application together with a console

Upvotes: 2

Related Questions