2 forms problem
How do i make a string array declared in form1 visible and usable in form2?
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.
Sebastian BanzPosted Jun 29, 2006, 8:40 AM
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