Console.BufferHeight Property gets or sets the height of the buffer area.
Imports System
Class Sample Public Shared Sub Main()
Console.WriteLine("The current buffer height is {0} rows.", _
Console.BufferHeight)
Console.WriteLine("The current buffer width is {0} columns.", _
Console.BufferWidth) End Sub End Class