I am trying to pass an ArrayList to another form. My assumption is that it will involve a Get and Set, but not sure how to implement it. Any help or code samples would be greatly appreciated!!!
Printable View
I am trying to pass an ArrayList to another form. My assumption is that it will involve a Get and Set, but not sure how to implement it. Any help or code samples would be greatly appreciated!!!
Well, I think I answered my own question, but I am not sure it is the correct way. Set my arraylist variable as public in my main module. Now I can access it anywhere. I know this works, but is this the correct way???
Well , if you declare any object in a module then you can access it in any where within your project which you are doing now.