I apologize in advance with what will probably be a fairly easy/quick answer based on scope, but I\'ve looked everywhere and am surprised to not come up with an answer.
You can also make Soldier a static variable :
public static Soldier soldier {get;set;} private void button1_Click(object sender, EventArgs e) { soldier = new Soldier(); soldier.surname = textbox1.text; }
Code in other forms:
Form1.soldier.name ="";