Top "Console-application" questions

A console application is a computer program designed to be used via a text-only computer interface, such as a text terminal, the command line interface of some operating systems (Unix, DOS, etc.

Can you execute another EXE file from within a C# console application?

Can you execute another EXE file from within a C# console application? Can you pass arguments? Can you get the …

c# console-application
How to call classes from one Project in another Project?

Excuse the incredibly silly question but im new to C# . I just can’t figure out how to use classes …

c# .net visual-studio console-application project-reference
Changing Console Window's size throws ArgumentOutOfRangeException

I am trying to set the size of the Console Window in a c# console application. I get an ArgumentOutOfRangeException …

c# console size console-application
Generic way to exit a .NET application

I understand that there are a few ways to exit an application, such as Application.Exit(), Application.ExitThread(), Environment.Exit(), …

c# wpf winforms console-application exit
VB.Net 'Sub Main' was not found

ok, I have an A level computing exam on Monday, and I have been working on the pre-release skeleton code. …

.net vb.net console-application entry-point
WCF Self Host Service - Endpoints in C#

My first few attempts at creating a self hosted service. Trying to make something up which will accept a query …

wcf console-application endpoints self-hosting
Is Thread.Sleep(Timeout.Infinite); more efficient than while(true){}?

I have a console application that I would like to keep open all of the time while still listening in …

c# console-application
What is the difference between public static void Main() and private static void Main() in a C# console application?

What is the difference between public static void Main() and private static void Main() in a C# console application? Specifically …

c# console-application
Redirect Console.Write... Methods to Visual Studio's Output Window While Debugging

From a Console Application project in Visual Studio, I want to redirect Console's output to the Output Window while debugging.

visual-studio debugging console-application
Global hotkey in console application

Does anyone know how to use the RegisterHotKey/UnregisterHotKey API calls in a console application? I assume that setting up/…

c# winapi pinvoke console-application