You are on page 1of 1

Example Program 1 Sequence

Module Module1
Sub Main()
Console.WriteLine("This is the first line of the program. It will be executed first.")
Console.ReadKey()
Console.ForegroundColor = ConsoleColor.Red
Console.WriteLine("But then the colour changes to Red.")
Console.ReadKey()
Console.BackgroundColor = ConsoleColor.White
Console.WriteLine("And the background goes white")
Console.ReadKey()
Console.ResetColor()
Console.WriteLine("But it's okay. We can reset it")
Console.ReadKey()
Console.ForegroundColor = ConsoleColor.Yellow
Console.WriteLine("The order of lines of code is important")
Console.WriteLine("We start at the top and work down")
Console.ReadKey()
End Sub
End Module

You might also like