簡単なチックタックトーゲームを作りました。と の 2 つのフォームがForm1ありfrmStatsます。私frmStatsには Label がありlblDrawます。プレイヤーが引き分けになると、ラベルが 1 つ増えるようにします。Form1のコードからアクセスするにはどうすればよいですか?
私の Form1 コード:
if (winner != 0)
this.Text = String.Format("Player {0} Wins!", winner);
else if (winner == 0 && turnCounter == 9)
this.Text = "Draw!";
//this is where i want/think the code should be to change the label
else
...