public Form1() { InitializeComponent(); o = new Overlays(); t = new Thread(Activate); g = new Thread(Activate); label1.Text = "Offline."; }
private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) { o = new Overlays(); t = new Thread(o.Run); t.Start(); } else { o.Dispose(); t.Abort(); } }