Visual Basic Cheat Sheet

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

The reference material consulted while preparing these pages is listed in the section bibliography.

A single-page, colour-coded A4 summary of Visual Basic 17.13 on .NET 10 (LTS), checked on 2026-10-19 and available as a downloadable PDF — the dotnet commands and .vbproj properties, the file skeleton, comments and line continuation, the elementary types with their sizes and literal suffixes, conversions, the operator precedence ladder with &, AndAlso, OrElse, Is Nothing and If(), control flow, procedures, parameters and lambdas, classes, structures, modules, interfaces, enumerations and events, access and inheritance modifiers, generics and constraints, arrays and collections, LINQ in query and method syntax, XML literals and axis properties, Try/Catch and the legacy On Error, the My namespace and the runtime library, compiler directives and attributes, Async/Await and threading, interop one-liners, the best practices and gotchas, and a strip that maps legacy VB6, VBA and VBScript constructs and old .NET APIs to their modern replacements — handy for quick memorization or as a printable desk reference.

For the full explanation, every option, and additional examples, see the dedicated pages:

Arrays, collections, LINQ and XML — Arrays, Collections, LINQ Query Expressions, and XML Literals and Axis Properties.