Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MessageBox that allows a process to continue automatically

Tags:

c#

.net

ssis

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]);

}
like image 880
James Khan Avatar asked Dec 04 '22 16:12

James Khan


1 Answers

//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");

 });
like image 162
General Grey Avatar answered Dec 10 '22 11:12

General Grey