access array from different form

  • Thread starter Thread starter vboss
  • Start date Start date
V

vboss

Hi, I am new to VB.NET, so I just wondering is there any easy way for form2 to
access array1 in form1?

Or how can I make a local copy of array1, called array2, for form2 to access?

Thanks in advance.
Jason
 
If the array is declared at the form level and marked anything other than private, then store a instance of the form in a global object and use

globalobject.array1 in form2

But do be careful to release the global object when you are done with the form itself.

Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
 
Back
Top