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:
...etc etc...
I also tried
but with no cigar.
Any help would be greatly appreciated.
(I also set the console to the largest size possible, as you can see in my code)
Here's my code:
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);
I also tried
Code:
Console.SetWindowPosition(0, 0);
Any help would be greatly appreciated.