VB.Net Tutorial/Development/Console

Материал из VB Эксперт
Перейти к: навигация, поиск

Change some characteristics of the command window

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