1. Home
  2. Computing & Technology
  3. Visual Basic

VB.NET: What Happened to Control Arrays!!! (Part 5)

By , About.com Guide

7 of 8

How Add and Delete work

These routines work by:

  • copying all of the control array to a temporary array
  • Adjusting the length of the control array (to both add and delete)
  • copying the temporary array back to the control array

In the RemoveFromPB routine, Copy had to be used rather than CopyTo because the temp array (the source) is one longer than the adjusted length of PB (the destination) and Copy has a length parameter.

Explore Visual Basic
By Category
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Using VB.NET
  5. How Add and Delete work

©2009 About.com, a part of The New York Times Company.

All rights reserved.