Programming Lesson 2

Go down

Programming Lesson 2 Empty Programming Lesson 2

Post by Revilo410 6/23/2012, 6:59 am

Welcome back to VB programming lessons by Revilo410.

Before we learn some harder things lets practice what we learned last lesson:

TYPE , (Not copy and paste)! this into VB as practice!

Module Module1

Sub Main()

Console.WriteLine("Welcome to my first proper program")
Console.WriteLine("Press enter to continue")
Console.ReadLine()
Console.WriteLine("Well Done!")
Console.WriteLine("Now again")
Console.ReadLine()
Console.WriteLine("Bye")
Console.WriteLine("Press Enter")
Console.ReadLine()

End Sub

End Module


Done?

Now lets learn some more EASY things!

Lets make the console look more colourful!

In the programming area between sub main and end sub

Type:

Console.ForegroundColor = ConsoleColor.Cyan
Console.BackgroundColor = ConsoleColor.red
Console.writeline("Colours!!!")
Console.readline

NOTE: colour in the porgramming is spelt the american way "color" Console.foregroundCOLOR etc.

Foreground colour is the TEXT and background colour is what colour is BEHIND the text.

Another command is:

Console.clear

Try messing around with it to see what you can do!

See you in Lesson 3, where we will learn about comments and variables!

Revilo410
Revilo410
Forum Admin
Forum Admin

Posts : 1868
Join date : 2012-01-30
Age : 26

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum