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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
kavita113 reputationPosted Jul 14, 2007, 1:18 AM EDT
Shareb16 reputationPosted Jul 16, 2007, 11:52 AM EDT
thx
AlanRank #669 · 3.6K reputationPosted Jul 16, 2007, 1:14 PM EDT
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].
Shareb16 reputationPosted Jul 23, 2007, 10:11 AM EDT