void SetTextBoxImages() { // 別スレッドから呼ばれることもあるのでInvokeにしておく Invoke((Action)(() => { textBox.Images = showScreenshotCheckBox.Checked ? templateBMPs : null; textBox.Refresh(); })); }