我希望显示一个消息框,并且程序继续运行,而不是等待我在此消息框中单击“确定”。能做到吗?
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");
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)