【C#】Form別スレッド移行時の処理(Invoke)【メモ】
Invoke
何をすればいいかはわかってたのに細かいところだけ思い出せず、ネットを探したら想像以上に見つからないことに怒り満タンだったのでメモメモ
if (startButton.InvokeRequired) { Invoke((MethodInvoker)delegate () { startButton.Text = "ダウンロード開始"; }); } else { startButton.Text = "ダウンロード開始"; }