I am not sure if this is possible in c# but i'm having a variable defined in
public partial class Form1 : Form
{...
...
#region used variables
public ulong[] logP = {0,0,0,0,0,0,0,0}
....
..
Then later in the program i want have an option to adjust the size in the program before the main routines will launch over it and do some calculations
Because i like to test with vaious sets of numbers and array sizes i would like to have an option to resize the array, for each test (but this array isnt bound to a single procedure, its a global variable that needs to be resizable.
As the whole program at various parts is using this array, (under various functions) how should i put this part
ulong [] sumP = new ulong[numericupdown.valeu];
So that it would change this global variable size ?