Content deleted Content added
|
|
== Examples ==
=== Hello World! ===
DIM "a","b","c" as integer
==== Windows Forms Application ====
IF a<b
Requires a button called Button1.<syntaxhighlight lang="vb.net">
Print "a" & "is a smallest"
Public Class Form1
IF b<c
Print "b" & "is a smallest"
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Else
MsgBox("Hello world!", MsgBoxStyle.Information, "Hello world!") ' Show a message that says "Hello world!".
Print "c" & "is smallest"
End Sub
Else
Print "b" & "is a smallest"
</syntaxhighlight>
[[File:Hello world! Window.jpg|thumb|Hello world! window]]
==== Console Application ====
<syntaxhighlight lang="vb.net>
Module Module1
Sub Main()
Console.WriteLine("Hello world!") ' Write in the console "Hello world!" and start a new line.
Console.ReadKey() ' The user must press any key before the application ends.
End Sub
End Module
</syntaxhighlight>
=== Speaking ===
|