public MainWindow() { InitializeComponent(); LogText.Focus(); _userActivityHook = new UserActivityHook(true, false); _userActivityHook.OnMouseActivity += UserActivityHookOnOnMouseActivity; }
private void InputText_MouseWheel(object sender, EventArgs e) { // move mouse to Log Text this.Cursor = new Cursor(Cursor.Current.Handle); Cursor.Position = new Point(Cursor.Position.X - 0, Cursor.Position.Y - 100); Cursor.Clip = new Rectangle(this.Location, this.Size); // LogText.Focus(); }