c# - How to use array in two different forms? -
this question has answer here:
- how share data between forms? 1 answer
i'm trying use 1 array declared in 1 form, plot graph zedgraph, in different form.
how need declare array , where?
short answer: don't declare array in first form.
declare in separate component/class/whatever instead, , let both forms access array there. way, array should independent of forms, , both can use it.
Comments
Post a Comment