Tasks 1.1) Display the words red, amber, green on a fresh line each in order on the screen. 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 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. Each line of the song should be on a fresh line.Įxample Program 1 – Sequence Module Module1 Sub Main() Console.WriteLine("This is the first line of the program. Tasks 0.1 – Write a program that displays the message “Hello Dave” 0.2 – Write a program that displays the message “My name is Dave and I live in Brussels” (replace Dave and Brussels with your own information) 0.3 – Write a program that displays the lyrics to your national anthem. Type the following code: module module1 sub main() console.writeline("Hello World!") console.readKey() end sub end module Your first program Start a new Project and select Console Application. If you don’t run Windows as your operating system you can try using Mono
#VB NET 2010 CONSOLE APPLICATION READKEY INSTALL#
40ĭownload and Setup Download VB Express and install it on your computer at home.
![vb net 2010 console application readkey vb net 2010 console application readkey](https://tipsmake.com/data/images/how-to-say-hello-to-a-custom-name-in-a-console-application-in-vbnet-picture-12-mIEQOArOQ.jpg)
30 Example Program 21 – 2 dimensional arrays. 27 Example Program 18b – Write to a text file. 26 Example Program 18a – Read from a text file.
![vb net 2010 console application readkey vb net 2010 console application readkey](https://www.codeproject.com/KB/vb/LineEditor/LineEditor.gif)
24 Example Program 17 – 1 dimensional arrays. 16 Example Program 13 – Procedures & Functions. 11 Example Program 8 - Built-in functions. 10 Example Program 7 - Logical bitwise operators. 9 Moderation Exercise 1 – Central Heating.
![vb net 2010 console application readkey vb net 2010 console application readkey](https://reader020.staticloud.net/reader020/html5/20190805/55cf9c99550346d033aa61de/bg1.png)
7 Example Program 5 - Relational operators. Tasks and sample programs to teach the AQA GCE Computing COMP1 syllabus.Ĭontents Download and Setup. VB.Net Console Student Booklet by Doug Semple