The error I'm getting when debugging (dynamic arrays): Unhandled exception at 0x5bfa782d in Ass4DynamicArrays.exe: 0xC0000005: Access violation writing location 0xabababab.
You'll have to post some code for anyone to know for sure what's going on, but you appear to be de-referencing an un-initialized pointer. Have you verified that you are allocating correctly before you attempt to access the information referenced by all of your pointers?
Another possibility (although unlikely given the wording of the error) is that you are attempting to de-reference a pointer that was previously valid, but its target has since been destroyed.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...