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






Console.WindowWidth

  

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.LargestWindowHeight
5.Console.ReadKey
6.Console.ReadKey.KeyChar
7.Console.ReadLine()
8.Console.Title
9.Console.WindowHeight
10.Console.WriteLine