MessageBox that allows a process to continue autom

2019-05-03 12:05发布

I would like a message box to be displayed and the program to just continue and not wait for me to click ok on this message box. Can it be done ?

else
{
    // Debug or messagebox the line that fails
    MessageBox.Show("Cols:" + _columns.Length.ToString() + " Line: " + lines[i]);

}

标签: c# .net ssis
7条回答
等我变得足够好
2楼-- · 2019-05-03 12:53
//You need to add this if you don't already have it

using System.Threading.Tasks;

//Then here is your code that will run async of the main thread;

Task.Factory.StartNew( () =>
{
   MessageBox.Show("This is a message");

 });
查看更多
登录 后发表回答