Visual Basic Language Features
The following topics introduce and discuss the essential components of Visual Basic, an object-oriented programming language. After creating the user interface for your application using forms and controls, you need to write the code that defines the application's behavior. As with any modern programming language, Visual Basic supports a number of common programming constructs and language elements.
If you have programmed in other languages, much of the material covered in this section might seem familiar. While most of the constructs are similar to those in other languages, the event-driven nature of Visual Basic introduces some subtle differences.
If you are new to programming, the material in this section serves as an introduction to the basic building blocks for writing code. Once you understand the basics, you can create powerful applications using Visual Basic.
In This Section
Discusses making your code more compact and powerful by declaring and using arrays, which hold multiple related values.
Describes collection initializers, which enable you to create a collection and populate it with an initial set of values.
Constants and Enumerations
Discusses storing unchanging values for repeated use, including sets of related constant values.
Shows how to regulate the flow of your program's execution.
Describes what kinds of data a programming element can hold and how that data is stored.
Covers programming elements you can declare, their names and characteristics, and how the compiler resolves references to them.
Provides an introduction to delegates and how they are used in Visual Basic.
Early and Late Binding
Describes binding, which is performed by the compiler when an object is assigned to an object variable, and the differences between early-bound and late-bound objects.
Provides an overview of syntax errors, run-time errors, and logic errors.
Shows how to declare and use events.
Describes what interfaces are and how you can use them in your applications.
Provides links to topics that introduce Language-Integrated Query (LINQ) features and programming.
Objects and Classes
Provides an overview of objects and classes, how they are used, their relationships to each other, and the properties, methods, and events they expose.
Operators and Expressions
Describes the code elements that manipulate value-holding elements, how to use them efficiently, and how to combine them to yield new values.
Operator procedures, as well as advanced topics such as recursive and overloaded procedures.
Describes declaration and executable statements.
Provides links to topics that describe the basic concepts about using strings in Visual Basic.
Introduces variables and describes how to use them in Visual Basic.
Provides links to topics that describe how to use XML in Visual Basic.
Describes some of the types of collections that are provided by the .NET Framework. Demonstrates how to use simple collections and collections of key/value pairs.
Visual Basic Language Reference
Provides reference information on various aspects of Visual Basic programming.
Submit and view feedback for