I'm not sure this is the right way to do it, but you can try this:
using System.ComponentModel;
using MySql.Data.MySqlClient;
public void Flush()
{
BackgroundWorker worker = new BackgroundWorker();
worker.DoWork += (sender, e) =>
{
e.Result = MySqlHelper.ExecuteNonQuery("your-connectionstring-here", "your-commandtext-here");
};
worker.RunWorkerCompleted += (sender, e) =>
{
MessageBox.Show((int)e.Result + " rows affected.", "Success");
};
worker.RunWorkerAsync();
}