Tips for golfing in Visual Basic .NET This page is not for Visual Basic Tips

Visual Basic .NET (VB.NET) is an multi-paradigm dialect of basic that was developed and released by Microsoft in 2002 as a replacement for Visual Basic. The current version of VB.Net as of Feb 2018 is Visual Basic .NET 15.0.
Unlike Visual Basic (VB), Visual Basic .NET (VB.NET) is fully integrated with the Microsoft .NET Framework giving it access to a far wider range of classes to access. Additionally, the bit width of integers and longs in VB.NET are 32 and 64 bits, respectively - twice that available to VB.

Some helpful links

MSDN Visual Basic .NET Guide

Visual Basic .NET Wiki

TIO - Visual Basic .NET (.NET Core)

TIO - Visual Basic .NET (Mono)
Dim Variables implicitly as variants



VB.NET is capable of assuming object type at compile time - with numerics being dimmed into 32-bit spaces this means that 

Module M
Sub Main
Dim i As Byte
Dim j As Short
Dim k As Integer
Dim l As Long
For i=128To 2^8-1 Step 64
For j=2^7*i To 2^15-1 Step 64^2
For k=2^16*j To 2^31-1 Step 2^24
For l=2^31*k To 2^62-1 Step 2^48
Console.Write(i &amp; j &amp; k &amp; l)
Next
Next
Next
Next
End Sub
End Module


Try it online! (266 bytes)

May be trimmed down by dimming i, j, k as variants, (note that because the default numeric type of a variant is a 32 Bit Integer l must still be dimmed as a Long as it shall hold a 64 bit value)

Module M
Sub Main
Dim i,j,k,l As Long
For i=128To 2^8-1 Step 64
For j=2^7*i To 2^15-1 Step 64^2
For k=2^16*j To 2^31-1 Step 2^24
For l=2^31*k To 2^62-1 Step 2^48
Console.Write(i &amp;j &amp;k &amp;l)
Next
Next
Next
Next
End Sub
End Module


Try it online! (226 bytes)

or even further to 218  bytes by combining Next statements



Module M
Sub Main
Dim i,j,k,l As Long
For i=128To 2^8-1 Step 64
For j=2^7*i To 2^15-1 Step 64^2
For k=2^16*j To 2^31-1 Step 8^8
For l=2^31*k To 2^62-1 Step 2^48
Console.Write(i &amp;j &amp;k &amp;l)
Next l,k,j,i
End Sub
End Module


Try it online! (218 bytes)
For a total savings of 40 bytes without impacting the output.