-2

I'm trying to use one array that I declared in one form, to plot a graph with zedgraph, in a different form.

How do I need to declare the array and where?

J. Steen
  • 15,470
  • 15
  • 56
  • 63
Amit
  • 11
  • 1
  • 1
    No different than using/accessing any object (e.g. through properties or other exchange) from a different Form .. it's also mostly irrelevant of how said object is used. – user2864740 Jun 26 '14 at 07:21
  • You should take a closer look at the basics before going on. – Rob Jun 26 '14 at 07:21
  • http://stackoverflow.com/questions/3800603/sharing-data-between-forms (and several others, follow links) – user2864740 Jun 26 '14 at 07:23

1 Answers1

0

Short answer: Don't declare your array in the first form.

Declare it in a separate component/class/whatever instead, and let both forms access the array there. That way, the array should be independent of the forms, and both can use it.

Kjartan
  • 18,591
  • 15
  • 71
  • 96