vb.net windows app vs console

Posted on 2009-04-21
Medium Priority
Last Modified: 2013-12-27
Can anyone tell me the main differences pros/cons of writing a server application(just a simple tcp/ip type app) in the console vs the windows way?

I am lacking the good vs bad on console vs window all together.

Question by:aumudin

Expert Comment

by:Sreedhar Vengala
ID: 24201337
If you app expects some form for input at runtime - Window app is prefered.

Console app is program with access to three basic data streams: standard input, standard output, and standard error. Console applications are light weight programs run inside the command prompt (DOS) window. They are commonly used for test applications.

Windows Forms is the name given to the graphical user interface application programming interface (API) included as a part of Microsoft's .NET Framework,
providing access to the native Microsoft Windows interface elements by wrapping the existing Windows API in managed code

Author Comment

ID: 24204289
So there is no really added benefit for doing console vs windows forms as far as speed goes all my app does is receive info from tcp/ip connection and inserts it into SQL

Accepted Solution

steeza earned 2000 total points
ID: 24205568
Nope there isn't and what's more, if that is all your application does you will probably do well to write it as a windows service rather than a console application. There seems to be no reason for having a GUI so windows forms/WPF is really out of the question.

One of the benefits of a service is that it can start running automatically after booting without anyone having to log on and manually start it.


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
Six Sigma Control Plans
Introduction to Processes
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question