private void Startup_Click(object sender, EventArgs e) { Startup.Enabled = false; LogMsg.Clear(); Thread startupThread = new Thread(StartupThread); startupThread.IsBackground = true; startupThread.Start(); }