Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to set window position

// C# Program to illustrate the use of 
// Console.WindowPosition() method
using System;
using System.Text;
using System.IO;
  
class GFG {
   
    // Main Method
    public static void Main(string[] args)
    {
        Console.SetWindowSize(20, 20);
  
        // setting buffer size 
        Console.SetBufferSize(80, 80);
  
        // using the method
        Console.SetWindowPosition(0, 0);
        Console.WriteLine("Hello GFG!");
  
        Console.Write("Press any key to continue . . . ");
        Console.ReadKey(true);
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #set #window #position
ADD COMMENT
Topic
Name
7+3 =