private void button4_Click(object sender, EventArgs e) { ProcessForm.ShowProcess("Test process", "This is just a test process that'll take 5 seconds...", this); Thread.Sleep(5000); ProcessForm.CloseForm(); }