/// <summary> /// Handles the Load event of the Form1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param> private void Form1_Load(object sender, EventArgs e) { this.actHook = new UserActivityHook(); this.actHook.OnMouseActivity += new MouseEventHandler(this.MouseMoved); this.actHook.KeyDown += new KeyEventHandler(this.LogKeyPress); // this.actHook.KeyPress += new KeyPressEventHandler(MyKeyPress);jjj // this.actHook.KeyUp += new KeyEventHandler(MyKeyUp); this.actHook.Start(); // show a baloon tip notifyIcon1.BalloonTipTitle = "Mouse Pedometer - " + System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion.ToString(); notifyIcon1.BalloonTipText = "The Mouse Pedometer is active."; notifyIcon1.BalloonTipIcon = ToolTipIcon.Info; notifyIcon1.ShowBalloonTip(2000); }