I'm working with a basic console application. I'm trying to use the Console.SetWindowPosition method to put the console window at the top left of the screen, but for some reason its not working (and no error either).
(I also set the console to the largest size possible, as you can see in my code)
Here's my code:
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight);
Console.SetWindowPosition(Console.WindowLeft, Console.WindowTop);...etc etc...
I also tried
Console.SetWindowPosition(0, 0);
but with no cigar.
Any help would be greatly appreciated.