private void char2NextButton_Click(object sender, EventArgs e) { Form f = this.FindForm(); f.Controls.Remove(this); charScreen3 cs3 = new charScreen3(); f.Controls.Add(cs3); }
private void char2NextButton_Click(object sender, EventArgs e) { Form1.newCharacter.strength = strSum; Form1.newCharacter.dexterity = dexSum; Form1.newCharacter.constitution = constSum; Form1.newCharacter.intelligence = intSum; Form1.newCharacter.wisdom = wisSum; Form1.newCharacter.charisma = chaSum; Form f = this.FindForm(); f.Controls.Remove(this); charScreen3 cs3 = new charScreen3(); f.Controls.Add(cs3); }