//Automate the nmap scan to run in the background whilst the progress bar is working private void worker_DoWork(object sender, DoWorkEventArgs e) { MPVM.LoadNmapScanInBackground(() => { }); }