public void Start()
 {
     appTitleToDisableOn = NativeHelpers.ActiveApplTitle();
     if (appTitleToDisableOn.Contains("Visual Studio"))
     {
         appTitleToDisableOn = "Visual Studio";
     }
     timer.Start();
 }
 private void timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     if (NativeHelpers.ActiveApplTitle().Contains(appTitleToDisableOn))
     {
         Point     position  = Cursor.Position;
         Rectangle rectangle = new Rectangle(position, new Size(1, 1));
         if (!rectangle.IntersectsWith(dockRootForm.Bounds))
         {
             Cursor.Position = dockRootForm.Location;
         }
     }
 }