http://www.codeguru.com/columns/vb/article.php/c6541/
http://www.wonderhowto.com/how-to/video/how-to-program-a-pop-up-message-box-in-visual-basic-173795/
Example code
Here are some examples of the language:
Program to display a pop-up message box with the words "Hello, World!" on it:
Private Sub Form_Load()
MsgBox "Hello, World!"
End Sub
Program to display an input box:
Sub Main()
Dim a As String
a = InputBox("Enter your name:")
MsgBox a
End Sub
Running Another Application Using Visual Basic:
Private Sub Run_Notepad()
Shell "notepad.exe", vbMinimizedFocus
'opens notepad
End Sub
Printing multiplication table of 5 on form:
Private Sub PrintMul_Click()
Dim I As Integer
For I = 1 To 10
Print 5; " x "; I; " = "; 5 * I
Next I
End Sub
Displaying all prime numbers below 100:
Private Sub DisplayPrimeNumbers()
Dim Num As Long
Dim NN As Long
Dim IsPrime As Boolean
For Num = 2 To 100
IsPrime = True
For NN = 2 To Int(Num / 2)
If Num Mod NN = 0 Then
IsPrime = False
Exit For
End If
Next
If IsPrime Then
MsgBox CStr(Num) + " is a prime number!"
End If
Next
End Sub
..........................................
Please post back if you have any more problems or questions.