I want to have a form that displays while some process is running and then closes after its finished. In my solution I am get an Exception when I run the this.Close()
method and the form dose not display. I do not really want to run a second thread just for this.
Here is how I open my form:
app appFourm = new app();
appFourm.ShowDialog();
Here is the code in the form:
namespace App
{
public partial class app: Form
{
public app()
{
InitializeComponent();
// do some stuff
this.Close();
}...(more sudo code)