xxxxxxxxxx
Using the Print method, this example displays the value of the variable
MyVar in the Immediate window.
Note that the Print method only applies to objects that can display text.
Dim MyVar
MyVar = "Come see me in the Immediate pane."
Debug.Print MyVar
xxxxxxxxxx
Private Sub btnMessage_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnMessage.Click
MsgBox("Welcome to Microsoft Visual Basic")
End Sub