Visual Basic Language Samples
These samples demonstrate Visual Basic syntax and My features.
In This Section
- API Call Sample
-
Demonstrates calling Win32 API functions to enumerate and control processes and windows, and to query and change system settings.
- Array Sample
-
Creates arrays of Integer and Object values, and sorts and searches arrays.
- Callbacks Sample
-
Demonstrates four methods for implementing callback procedures.
- Custom Exceptions Sample
-
Creates exceptions for errors specific to an application.
- Event Accessors Sample
-
Shows how to create and use an event accessor, which allows you to customize the implementation of an event.
- Exception-Handling Sample
-
Shows several options for handling exceptions in applications.
- File System Sample
-
Demonstrates the My.Computer.FileSystem Object.
- Generics Sample
-
Creates five types of generic collections.
- Object-Oriented Programming Sample
-
Demonstrates the options available with object-oriented programming.
- Operator Overloading Sample (Visual Basic)
-
Creates a class that represents money and implements operators for that class.
- String Formatting Sample
-
Allows users to specify formatting options, and then shows the results.
- String Methods Sample
-
Allows users to input parameters for several String methods, and then shows the results.
- Temporary Files Sample
-
Creates and deletes temporary files.
- Visual Basic 2005 Language Features Sample
-
Highlights new Visual Basic language features.
- XML Comments Sample
-
Demonstrates the XML comment feature of Visual Basic.
Reference
- Developing Applications with Visual Basic
-
Provides information on program structures, data access, and the Visual Basic editor.
- Visual Basic Programming Guide
-
Describes the elements of the Visual Basic language.