Visual Basic Language Samples
These samples demonstrate Visual Basic syntax and My features.
To access samples from Visual Studio
On the Help menu, click Samples.
By default, these samples are installed in drive:\Program Files\Microsoft Visual Studio 10.0\Samples\.
For the most current samples, go to the Visual Basic Samples Web site.
Security Note |
---|
Microsoft provides the included samples "AS IS" with no warranties. The code in the samples is provided just to illustrate concepts. The provided code may not meet security requirements for any specific environment. We recommend that you add security and error-handling code to your projects to make them as secure and robust as you deem appropriate. |
Samples
Sample |
Description |
---|---|
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. |
Custom Exceptions Sample |
Demonstrates custom exceptions and global exception handling. |
DateTime and TimeSpan Sample |
|
Exception-Handling Sample |
Shows how to handle exceptions in applications by using Try...Catch...Finally. |
File System Sample |
Demonstrates the how to use FileSystem methods. |
Generics Sample |
Shows how to create various generic collections and how to manipulate them. |
String Formatting Sample |
Shows how to display numeric, date/time, and enumeration values as strings by using a variety of standard and custom culture-specific format codes. |
String Sample |
Demonstrates how to use String methods. |
Visual Basic 2005 Language Features Sample |
Highlights several Visual Basic language features, including generics, operator overloading, and the Using keyword. |
Visual Basic Object-Oriented Programming Sample |
Demonstrates the options available with object-oriented programming. |
XML Comments Sample |
Demonstrates the XML comment feature of Visual Basic. |
See Also
Reference
Other Resources
Developing Applications with Visual Basic