I tried to move contains of an array from a form to another but I could'nt. What I coded is that.
First form:
// (This array has got something inside of it)
public string[,] yeniKayitlar = new string[100, 7];
Second form:
bilgiEkle be = new bilgiEkle();
string[,] kayitlar = new string[100, 7];
private void anaEkran_Load(object sender, EventArgs e) {
be.Hide();
for (int i = 0; i < kayitlar.GetLength(0); i++) {
for (int a = 0; a < kayitlar.GetLength(1); a++) {
kayitlar[i, a] = be.yeniKayitlar[i, a];
}
}
}
As you see, I could'nt to move. Can you help me?