Hi,
N00b issue; I don’t seem to be able to give the correct scope when defining a collection/list.
The list holds a group of references to textboxes.

Code:
Dim TBDec1 As New List(Of TextBox)() From {TBDecMsg1B7, TBDecMsg1B6, TBDecMsg1B5, TBDecMsg1B4, TBDecMsg1B3, TBDecMsg1B2, TBDecMsg1B1, TBDecMsg1B0}
The program works if this is declared within each procedure that requires it.
In an attempt to tidy up, I wish to declare it with a wider scope. I assumed form level would suffice and placed the follow, immediately after the ‘Public Class Form1’ line.
Code:
Private TBDec1 As New List(Of TextBox)() From {TBDecMsg1B7…. Etc
I tried DIM, PRIVATE
I also tried (badly) to create a module to hold this ‘global’ variable…no luck as it clearly had no knowledge of the textboxes references by the declaration.

Each time I run, I get;
Code:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
Clearly, when a variable is being used to retrieve an item from the list and its not able to find the list, even though I though I have it declared and at a quite broad level.
Am I missing something obvious here ?
How would you declare a list of textboxes at a broad level that will cover most of my 'windows forms' project?
Thanks for any guidance. - please excuse incorrect use of terminology.