private void Form1_Load(object sender, EventArgs e) { logViewer = new LogViewer(); Thread thread = new Thread(startEnum); thread.IsBackground = true; thread.Start(); }