100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Programming

VB.NET Quick Reference

A condensed reference for VB.NET syntax covering data types, control flow, collections, LINQ, and object-oriented constructs.

PracticeBeginner7 min readJul 10, 2026
Analogies

VB.NET at a Glance

This quick reference assumes Option Strict On and Option Explicit On as the baseline for any VB.NET code sample below, both should be the default for real projects. Use it as a fast lookup for syntax you don't type often enough to remember cold: declaring collections, LINQ query syntax, or the exact keyword for implementing an interface. Where VB.NET syntax differs meaningfully from C#, that's called out, since many developers using this reference are translating knowledge from one language to the other.

🏏

Cricket analogy: It's like a fielding captain keeping a laminated card of DRS review rules in his pocket for the rare moment he needs to double-check a review window rather than memorizing the fine print, a quick reference serves the same purpose for syntax you don't type daily.

Data Types and Declarations

VB.NET's core value types are Integer, 32-bit, Long, 64-bit, Double and Single, floating point, Decimal, 128-bit, ideal for currency because it avoids binary floating-point rounding error, Boolean, and Date, which stores both date and time. Reference types include String, immutable, like in C#, arrays, Dim numbers(4) As Integer creates a 5-element array, since VB.NET array bounds are inclusive of the upper index, and any Class you define. Declare variables with Dim, constants with Const, and use Nullable(Of T), or the shorthand Integer?, when a value type needs to represent 'no value' distinctly from its default, 0, False, or #1/1/0001#.

🏏

Cricket analogy: It's like distinguishing a player's exact batting average, a precise Decimal-style figure that matters for records, from a rough estimate rounded to the nearest five, using Decimal instead of Double for money is choosing precision where precision actually matters, the same way official cricket statistics never get casually rounded.

Control Flow Constructs

Conditional branching uses If...Then...ElseIf...Else...End If for general logic, or Select Case for matching a single expression against several discrete values or ranges, Case 1 To 5, Case Is > 100, Case Else. Looping constructs include For...Next for counted loops, For Each...Next for iterating any IEnumerable, a List(Of T), an array, a Dictionary's collection of key-value pairs, and Do While...Loop or Do...Loop Until for condition-driven repetition where the exact number of iterations isn't known upfront. Exit For, Exit Do, and Exit Sub/Function break out of the current loop or procedure early, while Continue For and Continue Do skip to the next iteration without exiting entirely.

🏏

Cricket analogy: It's like a captain's fielding plan branching on the batter, a Select Case-style decision tree with distinct field settings for a left-hander, a right-hander smashing sixes, or a tail-ender defending, rather than one generic If statement covering every situation clumsily.

Collections and LINQ

List(Of T) is the general-purpose resizable collection for most scenarios, offering .Add, .Remove, .Contains, and index-based access; Dictionary(Of TKey, TValue) provides fast key-based lookup, dict("abc123") retrieves a value in near-constant time versus scanning a List. LINQ can be written in query syntax, which reads close to SQL, Dim result = From c In customers Where c.IsActive Select c.Name Order By c.Name, or in method syntax using lambda expressions, customers.Where(Function(c) c.IsActive).Select(Function(c) c.Name).OrderBy(Function(c) c.Name). Both compile to the same underlying method calls; query syntax tends to read more naturally for multi-clause filtering and joins, while method syntax composes more easily when chaining a small number of operations.

🏏

Cricket analogy: It's like choosing between scanning an entire scorecard by eye for a specific player's runs, a List's linear scan, versus looking the player up directly in an indexed stats database by name, a Dictionary's near-instant key lookup.

OOP Syntax Essentials

A class is declared with Public Class Name...End Class, with properties defined via Public Property Name As Type, auto-implemented, or with explicit Get/Set accessors when validation logic is needed. Inherits establishes a base class relationship, a class can inherit from only one base class; Implements fulfills one or more interface contracts, a class can implement multiple interfaces. A constructor is Public Sub New(...), VB.NET has no separate 'constructor' keyword, New is simply a specially named Sub. Access modifiers, Public, Private, Protected, Friend, and Protected Friend, control visibility exactly as their C# counterparts do, with Friend meaning 'visible within the same assembly,' VB.NET's equivalent of C#'s internal.

🏏

Cricket analogy: It's like a franchise's constitution allowing a team to have exactly one head coach, Inherits, single base class, but sign multiple specialist consultants, a batting coach, a fielding coach, a fitness consultant, each fulfilling a distinct contract, Implements, multiple interfaces.

vbnet
Public Interface IReportable
    Function ToReportLine() As String
End Interface

Public Class Product
    Implements IReportable

    Public Property Name As String
    Public Property Price As Decimal

    Public Sub New(name As String, price As Decimal)
        Me.Name = name
        Me.Price = price
    End Sub

    Public Function ToReportLine() As String Implements IReportable.ToReportLine
        Return $"{Name}: {Price:C}"
    End Function
End Class

Module Program
    Sub Main()
        Dim products As New List(Of Product) From {
            New Product("Widget", 9.99D),
            New Product("Gadget", 24.5D),
            New Product("Gizmo", 3.75D)
        }

        Dim expensive = From p In products
                        Where p.Price > 5D
                        Order By p.Price Descending
                        Select p

        For Each item In expensive
            Console.WriteLine(item.ToReportLine())
        Next
    End Sub
End Module

This reference assumes Option Strict On and Option Explicit On throughout. Without them, several of these examples, like implicit type conversions in LINQ projections, would compile but could behave unpredictably at runtime.

  • Use Decimal for currency, Integer/Long for whole numbers, and Date for combined date-and-time values.
  • Select Case is cleaner than nested If-ElseIf chains when matching one expression against several discrete values or ranges.
  • For Each works over any IEnumerable; Do While/Do Until handle condition-driven loops where the iteration count isn't fixed.
  • List(Of T) suits general sequential storage; Dictionary(Of TKey, TValue) gives near-constant-time key-based lookup.
  • LINQ query syntax (From...Where...Select) and method syntax (.Where().Select()) compile to the same calls, pick whichever reads more clearly for the operation.
  • A class Inherits at most one base class but can Implements multiple interfaces.
  • Friend visibility means 'accessible within the same assembly,' VB.NET's equivalent of C#'s internal.

Practice what you learned

Was this page helpful?

Topics covered

#Programming#VBNETStudyNotes#VBNETQuickReference#NET#Quick#Reference#Glance#StudyNotes#SkillVeris#ExamPrep

Frequently Asked Questions

21 categories · pick one to explore

Where can I get free study notes for programming and tech subjects?
SkillVeris offers completely free study notes covering programming and tech subjects, with no signup fees or paywalls. The notes are structured by course and topic, written for quick understanding, and enriched with the Learn Through Hobbies analogy method, so you can revise concepts through cricket, music, gaming, cooking and more.
Are SkillVeris study notes good for exam revision?
Yes, the study notes are designed for efficient revision: each topic answers its heading immediately, keeps explanations concise, and links to related glossary terms and cheat sheets. Students preparing for university exams or certification tests use them as quick revision notes because they distil concepts without the padding of full textbooks.
What subjects do the free study notes cover?
The study notes span the platform's main domains, including AI and machine learning, Python and programming, web development, DevOps, cloud, security and databases. Coverage mirrors the 37 live courses, so notes exist for the topics you are actually studying, and new note sets are added as courses launch.
How are SkillVeris study notes different from regular textbooks?
The notes are answer-first, concise and free, whereas textbooks are long and often expensive. Each section explains one concept directly, then reinforces it through selectable hobby analogies like cricket or cooking. Notes also cross-link to the glossary, blog and cheat sheets, letting you jump to related material instantly instead of flipping pages.
Can I use the developer study material without creating an account?
The study notes are free to access, and SkillVeris does not charge anything for its developer study material at any point. Browsing notes is straightforward from the Study Notes section, and if you want progress tracking, certificates and AI Mentor conversations tied to your learning, a free account unlocks those extras.
Do the study notes explain concepts with analogies?
Yes, this is a signature SkillVeris feature. Study notes use the Learn Through Hobbies method, explaining technical concepts through analogies from twelve domains including cricket, music, gaming, photography, travel, movies, fitness, chess, cooking, finance, business and sports. You can switch the analogy domain instantly to whichever hobby makes the concept click.
Are the revision notes suitable for last-minute exam preparation?
Yes, revision notes on SkillVeris work well for last-minute preparation because every section states the answer in its first sentences, so skimming is genuinely effective. Pair them with the relevant cheat sheet for formulas and syntax, and use the glossary for any unfamiliar term you meet while cramming.
Is there free study material for AI and machine learning?
Yes, SkillVeris provides free study notes across its AI and ML catalogue, covering Python for AI, deep learning frameworks like PyTorch and TensorFlow, Hugging Face Transformers, Large Language Models, RAG, AI agents and MLOps. All of it is free, making it a strong resource for Indian students and global learners alike.
Can beginners understand the study notes, or are they for experts?
Beginners can absolutely use them. The notes are written in plain language, define terms as they appear, and lean on hobby analogies to make abstract ideas concrete. Difficulty scales with the underlying course level, so beginner-course notes stay gentle while advanced-course notes go deeper, and the glossary supports you throughout.
How do study notes connect with SkillVeris courses?
Study notes are organised by course and topic, so they map directly to the structured courses and their 24–40-lesson curriculum. Many learners study a lesson first, then use the matching notes for revision before module assessments and the final exam, where 80 percent is required to pass and earn the certificate.
Are there study notes for Python specifically?
Yes, Python is well covered through notes tied to the Python-focused courses, including Python for AI and ML. Topics span fundamentals through applied machine learning usage. You can reinforce the notes with Python practice in Code Lab, which runs code in your browser with no installation required.
Do the study notes include code examples?
Yes, study notes include code examples wherever a concept is best shown in code, alongside explanations, key points and analogies. Reading a snippet in the notes and then reproducing it yourself in Code Lab is an effective loop, since Code Lab lets you run code in the browser across six languages.
How often is new study material added to SkillVeris?
Study material grows alongside the course catalogue. Whenever new courses join the platform's 37 live courses, matching study notes, glossary entries and cheat sheets are added so the resources stay in sync. Existing notes are also refined over time, so it is worth revisiting topics you studied earlier.
Can I use SkillVeris notes to prepare for technical interviews?
Yes, the notes make excellent interview revision because they compress each concept into direct, answer-first explanations, which mirrors how you should answer interview questions. Combine them with the SkillVeris interview questions feature, which includes readiness scoring, to test whether your revision has actually made you interview-ready.
Are the study notes mobile-friendly for studying on the go?
Yes, the study notes are built to load fast and read comfortably on mobile devices, so you can revise during a commute or between classes. Sections are short and answer-first, which suits small screens, and analogy switching works on mobile too, letting you study anywhere without carrying books.
What is the difference between study notes and cheat sheets?
Study notes explain concepts in depth with context, examples and analogies, making them ideal for learning and revision. Cheat sheets are compact quick-reference summaries of syntax, commands and key facts, ideal once you already understand a topic. Most learners study the notes first, then keep the cheat sheet handy while coding.
Do study notes help if I am stuck on a course lesson?
Yes, reading the matching study notes often clarifies a lesson because the same concept is explained from a different angle, frequently with a different analogy. If you are still stuck, ask the AI Mentor, which answers 24/7 at Quick, Detailed or Deep-dive depth until the idea genuinely makes sense.
Is there free study material for DevOps and cloud topics?
Yes, SkillVeris carries free study notes for DevOps and cloud topics as part of its coverage across 37 live courses. The material suits learners following the DevOps Engineer or Cloud Engineer paths, and it links to related glossary terms and cheat sheets so you can revise the whole toolchain in one place.
Can school or college students in India use these notes for projects?
Yes, students across India and worldwide use SkillVeris notes for coursework, projects and exam preparation, and everything is free, which matters for student budgets. The notes explain concepts clearly enough to cite in project reports, and Code Lab lets you prototype the project code directly in your browser.
How should I combine study notes with other SkillVeris resources?
A proven loop: learn from a course lesson, revise with the matching study notes, look up unfamiliar terms in the glossary, keep the cheat sheet open while practising in Code Lab, and quiz yourself with interview questions. The AI Mentor fills any remaining gaps 24/7, at whatever depth you need.

What Learners Say

Real journeys from the SkillVeris community — swipe for more.

SkillVeris taught me Python through Cricket. Now I’m building real projects and feeling confident!
Arjun S. · B.Tech Student
The best platform for hobby-based learning. Concepts finally stick.
Priya R. · Data Analyst
I went from zero coding to a portfolio of projects — all by learning through my love for gaming. Landed my first internship!
Kabir M. · CS Undergraduate
Trending Topics50 popular tags — tap to explore
Trending CoursesAll 37 free courses — tap to browse