Код: Выделить всё
msgBox = new MsgBox();
if (msgBox.InvokeRequired)
{
msgBox.Invoke(new ShowMsg(ShowMessage));
}
else
{
ShowMessage();
}
Подробнее здесь: https://stackoverflow.com/questions/685 ... background
Код: Выделить всё
msgBox = new MsgBox();
if (msgBox.InvokeRequired)
{
msgBox.Invoke(new ShowMsg(ShowMessage));
}
else
{
ShowMessage();
}