|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Visual Basic Language Features
The following topics introduce the essential components of Visual Basic .NET, an object-oriented programming language. After creating the interface for your application using forms and controls, you will 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've programmed in other languages, much of the material covered in this section may seem familiar. While most of the constructs are similar to other languages, the event-driven nature of Visual Basic introduces some subtle differences.
If you're 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
- Visual Basic .NET and the .NET Framework
- Describes the role of Visual Basic .NET in the .NET Framework.
- Declared Elements
- Covers variables, constants, enumerations, structures, properties, methods, procedures, procedure arguments, function returns, events, delegates, interfaces, and classes.
- Data Types
- Describes programming elements that refer to what kind of data can be held and how that data is stored.
- Discusses how to declare variables and use them to refer to objects.
- Discusses making your code more compact and powerful by declaring and using arrays.
- Provides an overview of objects and classes; how they are used; their relationships to each other; and the properties, methods, and events they expose.
- Covers declaring and manipulating variables that contain a series of characters.
- Constants and Enumerations
- Discusses storing unchanging values for repeated use.
- Enumerations Overview
- Discusses storing and naming sets of related constant values.
- Describes the code units that manipulate value-returning elements, and how to use them efficiently.
- Shows how to combine elements with operators to yield new values.
- Provides an overview of the two basic units of instruction in Visual Basic: declaration statements and executable statements.
- Describes Sub, Function, and Property procedures, as well as advanced topics such as recursive and overloaded procedures.
- Control Flow
- Shows how to regulate the flow of your program's execution.