Deepchakra
Deepchakra

Reputation: 3

Converted console app to Windows Forms application. But need to run the program in both Forms and Console

I converted my console application to windows forms application. Now if I need to run this program in both forms and console what do i do? I tried running it as WinForms and console... in both the cases only one of them are opened. Any advice?

Upvotes: 0

Views: 64

Answers (2)

SanDeep
SanDeep

Reputation: 44

You can start project in Console application and add windows forms in it. I tried in my projects. :)

Upvotes: 0

kidshaw
kidshaw

Reputation: 3451

You have got two very different outputs which want to share the same code base for logic.

You will need to separate your application logic into a code library, then reference it from a Windows App and a Console App. In each app call the appropriate methods to perform whatever functionality you want.

Upvotes: 1

Related Questions