GEOG 490/590
GIS Programming
Exercise 2: VB .NET Syntax
In addition to working with the GUI controls in the IDE, developing a computer application does require some coding, that is, you do need to write computer codes using the correct syntax and algorithms. This exercise lets you practice some basic VB syntax. A good programmer always writes some codes to enforce and verify the programming knowledge s/he just learned. Please make this a habit when you read something new about VB .NET.
Do the Try it on the VB Online help of the following topics (use the hyperlinks or these topics as the keywords when searching the VB 2008 Express MSDN online help). The Windows Application that you are instructed to create is shown as Windows Forms Applications in the VB template panel.
Additional notes to step 3:
To run the TestMethod() subroutine, you need to have an event to trigger it. The subroutine doesn't have input arguments. You can just insert the code "TestMethod()" in any procedure associated with a GUI event, such as the Load event of a Window form or the Click event of the form (or a button on the form).