I have 2 forms, i need to have a copy of the array in the 1st form to be able to add/remove elements of it from the 2nd form.
can i use the Array.Copyto() method while the target array in another class ?
thanks in advance
~Shareb
I have 2 forms, i need to have a copy of the array in the 1st form to be able to add/remove elements of it from the 2nd form.
can i use the Array.Copyto() method while the target array in another class ?
thanks in advance
~Shareb
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SharebPosted Jul 23, 2007, 2:11 PM
AlanPosted Jul 16, 2007, 5:14 PM
If the array is declared as a local variable, then I'd change your code so that it's declared as a field instead.
I assume you're using one of the standard methods for getting a reference to the main form object from the second class such as (in .NET 2.0) Application.OpenForms[0].
SharebPosted Jul 16, 2007, 3:52 PM
thx
kavitaPosted Jul 14, 2007, 5:18 AM