C# winform アプリでは、オブジェクトが呼び出しているスタック ツリーの奥深くにある doWork メソッドにバックグラウンド ワーカーがあります。
// This is ok to be called on non UI thread because
// MessageBox has its own message pump
result = MessageBox.Show(form, message, AppStrings.low_space_title, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
コメントは以前の開発者からのもので、このコードは明らかに機能していましたが、現在は機能していないようです..私が得ているエラーは
Cross-thread operation not valid: Control 'FormMain' accessed from a thread other than the thread it was created on.
これを解決するために何か助けていただければ幸いです
ありがとう、