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