Mega Code Archive

 
Categories / VB.Net / Development
 

Console WindowLeft Property gets or sets the leftmost position of the console window area relative to the screen

Module Example    Public Sub Main()       Dim key As ConsoleKeyInfo       Dim moved As Boolean = False       Console.BufferWidth = 120       Console.Clear()       Console.WriteLine("   Buffer: {0} x {1}", Console.BufferHeight, Console.BufferWidth)       Console.WriteLine("   Window: {0} x {1}", Console.WindowHeight, Console.WindowWidth)       Console.WriteLine("   Window starts at {0}.", Console.WindowLeft)       Console.WindowLeft = 100    End Sub End Module