private void Form1_Closed(object sender, FormClosedEventArgs e) { th.Abort(); MouseHook.stop(); }
private void Form1_Load(object sender, EventArgs e) { MouseHook.Start(); th = new Thread(new ThreadStart(ThreadRun)); th.Start(); }