In form1, as global variable, I have this:
public Swords[] sw = new Swords[2];
And, in the main:
sw[0] = new Swords("sword_1.jpg");
sw[1] = new Swords("sword_2.jpg");
Store ST = new Store();
ST.ShowDialog();
Then, in main of form Store, I have this just to test:
Form1 f = new Form1(); MessageBox.Show(f.sw[0].GetSword());
And it gives an break exception, that in resume says that I dont have any kind of information in sw[0] - its all Null.
How can I solve it?

New Topic/Question
Reply




MultiQuote







|