Hi,
Keep the array list in a seperate class, and make the array list public
static. Then you can access it like this
MySeperateClass.MyArrayList = new System.Collections.ArrayList();
MySeperateClass.MyArrayList.Add("Hello");
Console.WriteLine(MySeperateClass.MyArrayList[0]);
public class MySeperateClass
{
public static System.Collections.ArrayList MyArrayList;
}
-benny
ree wrote:
I am new to c#
Since you cant use vectors in it.
I was trying to use an arraylist, but the problem is how do I get an
arraylist to have a global scope. I.e. accessing the arraylist of objects
in different dialog boxes.
Thanks