我希望显示一个消息框,程序继续运行,而不是等待我单击此消息框上的“确定”。可以吗?
else
{
// Debug or messagebox the line that fails
MessageBox.Show("Cols:" + _columns.Length.ToString() + " Line: " + lines[i]);
}
最佳答案
//You need to add this if you don't already have it
using System.Threading.Tasks;
//然后这是你的代码,将运行主线程的异步;
Task.Factory.StartNew( () =>
{
MessageBox.Show("This is a message");
});
关于c# - 允许进程自动继续的 MessageBox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10634663/