2 forms problem
How do i make a string array declared in form1 visible and usable in form2?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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
Sebastian Banz8 reputationPosted Jun 29, 2006, 4:40 AM EDT
Use a static variable.
class test{
public static int[] arr;
....
}
You can now access these variable in any part of your code with:
test.arr