I have a WinForm that I create that shows a prompt with a button. This is a custom WinForm view, as a message box dialog was not sufficient.
I have a background work
Note that this.Hide(); is not the same as this.Close(); in the actual dialog your overriding the closed event
this.Hide();
this.Close();