C# .NET - how to set array range dynamically in windows form application

Asked By subbu p on 02-Jul-13 01:23 PM
While we entering the data in textboxes dynamically like[s,a,c,h],How to set range for these in windows application forms c#.
Robbe Morris replied to subbu p on 02-Jul-13 01:23 PM
huh?
shital patil replied to subbu p on 09-Jul-13 06:48 AM
//1st declare array with 0 size
 string[] array = new string[0];

//While adding data increase size of array
Array.Resize(ref  array, array.Length+1);
 array[array.Length - 1] ='a';