VB.NET Tutorial - Dynamic Arrays (Visual Basic .NET)

In this VB.NET tutorial, I'll show you the basics of using Dynamic Arrays with ReDim. We'll also learn about the ReDim Preserve option to preserve the array contents when we restructure it. Note: Small mistake - The PopulateArray Sub loops the entire array and overwrites the preserved contents. Sorry! Tutorial Features: Dynamic Arrays - 1-D and 2-D Arrays Form Controls - Button, Label, ListBox Random - Generate Random Numbers Subs - Populate Our Array with Random Numbers Lambda Expression - Loop through array and populate ListBox