コード例 #1
0
 private void Form1_Closed(object sender, FormClosedEventArgs e)
 {
     th.Abort();
     MouseHook.stop();
 }
コード例 #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     MouseHook.Start();
     th = new Thread(new ThreadStart(ThreadRun));
     th.Start();
 }