I l @ ve RuBoard |
In keeping with programming tradition, Listing C.1 outlines our first "Hello, world" program. Listing C.1 The classic "hello, world" program, hello.vb.Imports System.WinForms Module Hello Sub Main() { ' write "Hello, world!" to the screen MessageBox.Show("Hello, World!") End Sub End Module By following convention, the source code for our program is saved with a .vb file extension, hello.vb . We can compile our program using the VB.NET command-line compiler, vbc.exe , using the following syntax: vbc hello.vb The output of this directive produces our executable program, hello.exe . The output of the program is Hello, World! From this basic example, we can glean several important points:
|
I l @ ve RuBoard |