Моя проблема в том, что MessageBox скрыт за окном Блокнота, даже если я отложу создание MessagBox на несколько секунд.
Вот мой код:
Код: Выделить всё
Process process = Process.Start("Notepad.exe", outputFile);
if (process != null)
process.WaitForExit(5000);
if (MessageBox.Show("Info text?", "Header text",
MessageBoxButtons.YesNo, MessageBoxIcon.Question,
MessageBoxDefaultButton.Button2) == DialogResult.Yes)
{
// Do something
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... arted-by-m
Мобильная версия