var th = new Thread(() =>
{
var form = new YourForm();
form.FormClosing += (s, e) => Application.ExitThread();
form.Show();
Application.Run();
});
th.SetApartmentState(ApartmentState.STA);
th.Start();
Run Code Online (Sandbox Code Playgroud)