Console.LargestWindowHeight : Console « System « VB.Net by API






Console.LargestWindowHeight

  

Module Module1

    Sub Main()

        
        Console.Title = "Custom Command Window"
        Console.BackgroundColor = ConsoleColor.White
        Console.ForegroundColor = ConsoleColor.DarkBlue
        Console.WindowHeight = Console.LargestWindowHeight - 15
        Console.WindowWidth = Console.LargestWindowWidth - 15

        'Call a few methods to clear and pause the window.
        Console.Clear()

    End Sub

End Module

   
    
  








Related examples in the same category

1.Console.BackgroundColor
2.Console.Clear()
3.Console.ForegroundColor
4.Console.ReadKey
5.Console.ReadKey.KeyChar
6.Console.ReadLine()
7.Console.Title
8.Console.WindowHeight
9.Console.WindowWidth
10.Console.WriteLine