yeah , but I dont use Visual Studio, just the command line and notepad so I dont get that luxury..

Ill eventually isntall VS .Net but right now I have been quite happy with notepad



but here is the actual class code if you want it

Code:
using System;
using System.Runtime.InteropServices;

public class ConsoleMode
{

	const int STD_INPUT_HANDLE = -10;
	const int ENABLE_LINE_INPUT = 0x0002;
	const int ENABLE_ECHO_INPUT = 0x0004;
	[DllImport("kernel32")]
	public static extern IntPtr GetStdHandle(int nStdHandle);
	[DllImport("kernel32")]
	public static extern bool SetConsoleMode(IntPtr hConsoleHandle, int mode);
	[DllImport("kernel32")]
	public static extern bool GetConsoleMode(IntPtr hConsoleHandle, ref int pmode);

	
	public static void EnableCharMode()
	{
		IntPtr hConsole;
		int mode= 0;
		hConsole = GetStdHandle(STD_INPUT_HANDLE);
		GetConsoleMode(hConsole, ref mode);
		mode &= ~ (ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);
		SetConsoleMode(hConsole, mode);
	}

	public static void EnableLineMode()
	{
		IntPtr hConsole;
		int mode=0;
		hConsole = GetStdHandle(STD_INPUT_HANDLE);
		GetConsoleMode(hConsole, ref mode);
		mode |= (ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);
		SetConsoleMode(hConsole, mode);
	}
}
btw if anyone knows the equvialnt of what ~ and |= is for VB, please let me know